mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
gwenview: apply style sheet override selectively
because KUrlRequested creates a KFileDialog parented to it, inheriting the style sheet for example Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
bde23022ef
commit
4698f77414
2 changed files with 6 additions and 10 deletions
|
@ -119,11 +119,11 @@ struct ThumbnailPagePrivate : public Ui_ThumbnailPage
|
|||
q, SLOT(updateImportButtons()));
|
||||
}
|
||||
|
||||
void setupStyleSheet()
|
||||
void setupStyleSheet(QWidget *widget)
|
||||
{
|
||||
q->setStyleSheet(
|
||||
widget->setStyleSheet(
|
||||
QString::fromLatin1(
|
||||
"QLabel[isIcon=true] {"
|
||||
"QLabel {"
|
||||
" border: 1px solid palette(mid);"
|
||||
" background-color: palette(base);"
|
||||
" padding: 12px;"
|
||||
|
@ -137,7 +137,9 @@ struct ThumbnailPagePrivate : public Ui_ThumbnailPage
|
|||
const KIconLoader::Group group = KIconLoader::NoGroup;
|
||||
const int size = KIconLoader::SizeHuge;
|
||||
mSrcIconLabel->setPixmap(KIconLoader::global()->loadIcon("camera-photo", group, size));
|
||||
setupStyleSheet(mSrcIconLabel);
|
||||
mDstIconLabel->setPixmap(KIconLoader::global()->loadIcon("computer", group, size));
|
||||
setupStyleSheet(mDstIconLabel);
|
||||
}
|
||||
|
||||
void setupSrcUrlWidgets()
|
||||
|
@ -147,6 +149,7 @@ struct ThumbnailPagePrivate : public Ui_ThumbnailPage
|
|||
|
||||
void setupDstUrlRequester()
|
||||
{
|
||||
mDstUrlRequester->setStyle(QApplication::style());
|
||||
mDstUrlRequester->setMode(KFile::Directory | KFile::LocalOnly);
|
||||
}
|
||||
|
||||
|
@ -234,7 +237,6 @@ 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();
|
||||
|
|
|
@ -27,9 +27,6 @@
|
|||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
||||
</property>
|
||||
<property name="isIcon" stdset="0">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
@ -62,9 +59,6 @@
|
|||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
||||
</property>
|
||||
<property name="isIcon" stdset="0">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
|
|
Loading…
Add table
Reference in a new issue