mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 02:42:52 +00:00
generic: remove gtk style references
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
08ebc678c0
commit
fe37099810
2 changed files with 0 additions and 26 deletions
|
@ -120,12 +120,6 @@ static void initViewPalette(QAbstractItemView* view, const QColor& fgColor)
|
||||||
view->setPalette(palette);
|
view->setPalette(palette);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool styleIsGtkBased()
|
|
||||||
{
|
|
||||||
const char* name = QApplication::style()->metaObject()->className();
|
|
||||||
return qstrcmp(name, "QGtkStyle") == 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
StartMainPage::StartMainPage(QWidget* parent, GvCore* gvCore)
|
StartMainPage::StartMainPage(QWidget* parent, GvCore* gvCore)
|
||||||
: QFrame(parent)
|
: QFrame(parent)
|
||||||
, d(new StartMainPagePrivate)
|
, d(new StartMainPagePrivate)
|
||||||
|
@ -135,14 +129,6 @@ StartMainPage::StartMainPage(QWidget* parent, GvCore* gvCore)
|
||||||
d->mSearchUiInitialized = false;
|
d->mSearchUiInitialized = false;
|
||||||
|
|
||||||
d->setupUi(this);
|
d->setupUi(this);
|
||||||
if (styleIsGtkBased()) {
|
|
||||||
// Gtk-based styles do not apply the correct background color on tabs.
|
|
||||||
// As a workaround, use the Plastique style instead.
|
|
||||||
QStyle* fix = new QPlastiqueStyle();
|
|
||||||
fix->setParent(this);
|
|
||||||
d->mHistoryWidget->tabBar()->setStyle(fix);
|
|
||||||
d->mPlacesTagsWidget->tabBar()->setStyle(fix);
|
|
||||||
}
|
|
||||||
setFrameStyle(QFrame::NoFrame);
|
setFrameStyle(QFrame::NoFrame);
|
||||||
|
|
||||||
// Bookmark view
|
// Bookmark view
|
||||||
|
|
|
@ -45,18 +45,6 @@ PartWidget::PartWidget(QWidget* parent, const Partition* p) :
|
||||||
m_Active(false)
|
m_Active(false)
|
||||||
{
|
{
|
||||||
setFont(KGlobalSettings::smallestReadableFont());
|
setFont(KGlobalSettings::smallestReadableFont());
|
||||||
|
|
||||||
// Check if user is running a GTK style; in that case, use plastique as a fallback
|
|
||||||
// style for the PartWidget to work around GTK styles not showing the FS colors
|
|
||||||
// correctly.
|
|
||||||
// Inspired by Aurélien Gâteau's similar workaround in Gwenview (230aebbd)
|
|
||||||
if (qstrcmp(QApplication::style()->metaObject()->className(), "QGtkStyle") == 0)
|
|
||||||
{
|
|
||||||
QStyle* style = new QPlastiqueStyle();
|
|
||||||
style->setParent(this);
|
|
||||||
setStyle(style);
|
|
||||||
}
|
|
||||||
|
|
||||||
init(p);
|
init(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue