diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:06:00 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:06:00 -0600 |
commit | 1e760a2dfe9ceefe16045739a123d36e8b3a35c5 (patch) | |
tree | baec5d18399864154ca3b74d39ff863772c018ad /style/qtcurve.cpp | |
parent | d1903dde17b3b514442ed0dd97b727325d92565e (diff) | |
download | tde-style-qtcurve-1e760a2dfe9ceefe16045739a123d36e8b3a35c5.tar.gz tde-style-qtcurve-1e760a2dfe9ceefe16045739a123d36e8b3a35c5.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'style/qtcurve.cpp')
-rw-r--r-- | style/qtcurve.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/style/qtcurve.cpp b/style/qtcurve.cpp index 4ba1dfe..4eebbc9 100644 --- a/style/qtcurve.cpp +++ b/style/qtcurve.cpp @@ -1671,8 +1671,8 @@ void QtCurveStyle::polish(const TQStyleControlElementData &ceData, ControlElemen } else if(::tqqt_cast<TQPopupMenu *>(widget)) widget->setBackgroundMode(NoBackground); // PaletteBackground); - else if (ceData.widgetObjectTypes.contains("KToolBarSeparator") || - (ceData.widgetObjectTypes.contains("KListViewSearchLineWidget") && + else if (ceData.widgetObjectTypes.contains("TDEToolBarSeparator") || + (ceData.widgetObjectTypes.contains("TDEListViewSearchLineWidget") && widget->parent() && ::tqqt_cast<TQToolBar *>(widget->parent()))) { widget->setName(kdeToolbarWidget); @@ -1724,7 +1724,7 @@ void QtCurveStyle::polish(const TQStyleControlElementData &ceData, ControlElemen { if(!widget->parent() || 0!=qstrcmp(TQT_TQWIDGET(widget->parent())->className(), - "KListViewSearchLineWidget") || + "TDEListViewSearchLineWidget") || onToolBar(widget)) { installObjectEventHandler(ceData, elementFlags, ptr, this); @@ -1924,7 +1924,7 @@ void QtCurveStyle::unPolish(const TQStyleControlElementData &ceData, ControlElem SHADE_SELECTED==opts.shadeMenubars || (SHADE_CUSTOM==opts.shadeMenubars &&TOO_DARK(itsMenubarCols[ORIGINAL_SHADE]))) widget->setPalette(TQApplication::palette()); } - else if (ceData.widgetObjectTypes.contains("KToolBarSeparator")) + else if (ceData.widgetObjectTypes.contains("TDEToolBarSeparator")) { widget->setBackgroundMode(PaletteBackground); removeObjectEventHandler(ceData, elementFlags, ptr, this); @@ -2111,7 +2111,7 @@ bool QtCurveStyle::objectEventHandler( const TQStyleControlElementData &ceData, opts.menuBgndAppearance, WIDGET_OTHER); return false; } - else if (object->inherits("KToolBarSeparator")) + else if (object->inherits("TDEToolBarSeparator")) { TQFrame *frame(::tqqt_cast<TQFrame *>(object)); @@ -3240,7 +3240,7 @@ void QtCurveStyle::drawPrimitive(TQ_PrimitiveElement pe, TQPainter *p, const TQS } else if(0==flags) // Header on popup menu? { TQWidget *widget(p && p->device() ? dynamic_cast<TQWidget*>(p->device()) : 0L); - bool menuTitle(widget && 0==qstrcmp(ceData.widgetObjectTypes[ceData.widgetObjectTypes.count()-1].ascii(), "KPopupTitle")); + bool menuTitle(widget && 0==qstrcmp(ceData.widgetObjectTypes[ceData.widgetObjectTypes.count()-1].ascii(), "TDEPopupTitle")); const TQColor *use(buttonColors(cg)); TQRect r2(r); |