diff options
| author | 2015-11-11 11:30:20 +0100 | |
|---|---|---|
| committer | 2015-11-11 11:30:20 +0100 | |
| commit | a1d87ac1b18b6212741fd3ddb3de2fb23bd9923b (patch) | |
| tree | e4a94b7eefb58c2dd3c0467dcdc7cb7171e22a4d /src/modules/theme/ThemeFunctions.cpp | |
| parent | Fix all quirks found in KviInputEditor related to cursor positioning after de... (diff) | |
| download | KVIrc-a1d87ac1b18b6212741fd3ddb3de2fb23bd9923b.tar.gz KVIrc-a1d87ac1b18b6212741fd3ddb3de2fb23bd9923b.tar.bz2 KVIrc-a1d87ac1b18b6212741fd3ddb3de2fb23bd9923b.zip | |
Use QWidget::grab to make screenshots.
QPixMap::grabWidget was deprecated with Qt 5.0.
Diffstat (limited to 'src/modules/theme/ThemeFunctions.cpp')
| -rw-r--r-- | src/modules/theme/ThemeFunctions.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/theme/ThemeFunctions.cpp b/src/modules/theme/ThemeFunctions.cpp index c1e464049..604477170 100644 --- a/src/modules/theme/ThemeFunctions.cpp +++ b/src/modules/theme/ThemeFunctions.cpp @@ -367,7 +367,11 @@ namespace ThemeFunctions if(bMaximizeFrame) g_pMainWindow->showMaximized(); +#if (QT_VERSION >= 0x050000) + QPixmap pix = g_pMainWindow->grab(); +#else QPixmap pix = QPixmap::grabWidget(g_pMainWindow); +#endif bool bResult = true; if(pix.isNull()) |
