![]() |
KDWinUtils
Helper library for MFC to Qt migration
|
Go to the source code of this file.
Namespaces | |
| namespace | Utils |
Functions | |
| void | Utils::centerWindow (QWidget *dialogWidget, const QRect &parentRect) |
| Centers the dialog widget in the parentRect. | |
| QAction * | Utils::findCommand (const QList< QAction * > &actionList, const QString &menuText) |
| Finds a command with the specified text from a list of commands. | |
| QAction * | Utils::findCommand (const QList< QAction * > &actionList, int id) |
| Finds a command with the specified ID from a list of commands. | |
| HWND | Utils::nativeHandle (QWidget *_widget) |
| Returns the native handle of the widget. | |
| float | Utils::scaleFactor (QWidget *widget) |
| Returns the scale factor of the widget. | |
| bool | Utils::setCommandChecked (const QList< QAction * > &actionList, int id, bool checked) |
| Checks the command with the specified ID from a list of commands. | |
| bool | Utils::setCommandEnabled (const QList< QAction * > &actionList, int id, bool enable) |
| Enables the command with the specified ID from a list of commands. | |