diff options
author | Mikkel Krautz <mikkel@krautz.dk> | 2013-06-29 18:06:33 +0400 |
---|---|---|
committer | Mikkel Krautz <mikkel@krautz.dk> | 2013-06-29 18:56:42 +0400 |
commit | 28bb66e01f8db3a18f66a7e9760c3323982cc6f5 (patch) | |
tree | 81f4b74652a5090fc9c9e06d342a71a857d032ad /plugins | |
parent | 3cc2419939723cf1caa2e16c42ac4e5553bbb934 (diff) |
plugins: disable unhinge functionality for the manual plugin when using Qt 5.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/manual/manual.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/manual/manual.cpp b/plugins/manual/manual.cpp index edab2c567..e9b1f635b 100644 --- a/plugins/manual/manual.cpp +++ b/plugins/manual/manual.cpp @@ -275,7 +275,9 @@ static void config(HWND h) { #else mDlg->setParent(reinterpret_cast<QWidget *>(h), Qt::Dialog); #endif +#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) mDlg->qpbUnhinge->setEnabled(true); +#endif } else { #if defined(Q_OS_WIN) mDlg = new Manual(QWidgetForHWND(h)); @@ -284,6 +286,9 @@ static void config(HWND h) { #endif } +#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) + mDlg->qpbUnhinge->setEnabled(false); +#endif mDlg->show(); } |