aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2015-10-04 04:48:23 +0200
committerGravatar Szymon Tomasz Stefanek2015-10-04 04:48:23 +0200
commit31135fb0bbcd9a12b5a19990c28e5ccdcf4b06f6 (patch)
treecb36b687e10bcb821872f734bf26333583a0823c /src/modules
parentMerge branch 'master' of https://github.com/kvirc/KVIrc (diff)
downloadKVIrc-31135fb0bbcd9a12b5a19990c28e5ccdcf4b06f6.tar.gz
KVIrc-31135fb0bbcd9a12b5a19990c28e5ccdcf4b06f6.tar.bz2
KVIrc-31135fb0bbcd9a12b5a19990c28e5ccdcf4b06f6.zip
Make the theme images in the theme management dialog bigger. Maybe needs more polishing
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/theme/ThemeManagementDialog.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/modules/theme/ThemeManagementDialog.cpp b/src/modules/theme/ThemeManagementDialog.cpp
index 8d19b7b86..a20c2f7fd 100644
--- a/src/modules/theme/ThemeManagementDialog.cpp
+++ b/src/modules/theme/ThemeManagementDialog.cpp
@@ -181,11 +181,12 @@ ThemeManagementDialog::ThemeManagementDialog(QWidget * parent)
m_pListWidget = new KviTalListWidget(this);
m_pListWidget->setContextMenuPolicy(Qt::CustomContextMenu);
m_pItemDelegate = new KviTalIconAndRichTextItemDelegate(m_pListWidget);
- m_pItemDelegate->setDefaultIcon(g_pIconManager->getBigIcon(QString(KVI_BIGICON_THEME)));
- m_pItemDelegate->setMinimumSize(QSize(300,60));
+ m_pItemDelegate->setDefaultIcon(g_pIconManager->getBigIcon(QString(KVI_BIGICON_THEME))->scaled(200,180,Qt::KeepAspectRatio)); // FIXME!
+ m_pItemDelegate->setMinimumSize(QSize(400,60));
+ m_pItemDelegate->setIconSize(QSize(200,180));
m_pListWidget->setItemDelegate(m_pItemDelegate);
m_pListWidget->setMinimumHeight(400);
- m_pListWidget->setMinimumWidth(420);
+ m_pListWidget->setMinimumWidth(520);
m_pListWidget->setSelectionMode(QAbstractItemView::ExtendedSelection);
m_pListWidget->setSortingEnabled(true);
@@ -213,7 +214,7 @@ ThemeManagementDialog::ThemeManagementDialog(QWidget * parent)
pSep = new QFrame(this);
pSep->setFrameStyle(QFrame::HLine | QFrame::Sunken);
- pSep->setMinimumWidth(300);
+ pSep->setMinimumWidth(400);
// g->addWidget(pSep,3,0);
pVBox->addWidget(pSep);
@@ -477,7 +478,7 @@ void ThemeManagementDialog::fillThemeBox(bool bBuiltin)
QPixmap pixmap=inf->smallScreenshot();
if(!pixmap.isNull())
- it->setIcon(pixmap.scaled(32,32));
+ it->setIcon(pixmap.scaled(200,180,Qt::KeepAspectRatio));
} else {
delete inf;
}