mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
gwenview: set the thumbnail page widget style sheet programatically
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
c7da45931b
commit
bb38525225
2 changed files with 15 additions and 9 deletions
|
@ -119,6 +119,20 @@ struct ThumbnailPagePrivate : public Ui_ThumbnailPage
|
|||
q, SLOT(updateImportButtons()));
|
||||
}
|
||||
|
||||
void setupStyleSheet()
|
||||
{
|
||||
q->setStyleSheet(
|
||||
QString::fromLatin1(
|
||||
"QLabel[isTitle=true] { font-weight: bold }"
|
||||
"QLabel[isIcon=true] {"
|
||||
" border: 1px solid palette(mid);"
|
||||
" background-color: palette(base);"
|
||||
" padding: 12px;"
|
||||
"}"
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
void setupIcons()
|
||||
{
|
||||
const KIconLoader::Group group = KIconLoader::NoGroup;
|
||||
|
@ -221,6 +235,7 @@ ThumbnailPage::ThumbnailPage()
|
|||
d->q = this;
|
||||
d->mUrlMap.setConfigGroup(KConfigGroup(KGlobal::config(), URL_FOR_BASE_URL_GROUP));
|
||||
d->setupUi(this);
|
||||
d->setupStyleSheet();
|
||||
d->setupIcons();
|
||||
d->setupDirModel();
|
||||
d->setupSrcUrlWidgets();
|
||||
|
|
|
@ -10,15 +10,6 @@
|
|||
<height>487</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QLabel[isTitle=true] { font-weight: bold }
|
||||
|
||||
QLabel[isIcon=true] {
|
||||
border: 1px solid palette(mid);
|
||||
background-color: palette(base);
|
||||
padding: 12px;
|
||||
}</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0" rowspan="5">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
|
|
Loading…
Add table
Reference in a new issue