[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeartwork/styles/plastik (silent)
From: Sandro Giessl <ceebx () users ! sourceforge ! net>
Date: 2004-02-02 22:46:16
Message-ID: 20040202224616.586D69908 () office ! kde ! org
[Download RAW message or body]
CVS commit by giessl:
CVS_SILENT
Clean up unused code.
M +0 -50 plastik.cpp 1.37
M +0 -9 plastik.h 1.13
--- kdeartwork/styles/plastik/plastik.cpp #1.36:1.37
@@ -2998,54 +2998,4 @@ QSize PlastikStyle::sizeFromContents(Con
}
-// void PlastikStyle::paletteChanged()
-// {
-// QComboBox *combo = 0L;
-// QMenuBar *menuBar = 0L;
-// QToolBar *toolBar = 0L;
-// QWidget *widget = 0L;
-//
-// QValueListIterator<QWidget*> it = m_widgets.begin();
-// for ( ; it != m_widgets.end(); ++it ) {
-// widget = *it;
-// if ((combo = dynamic_cast<QComboBox*>( widget )))
-// updatePalette( combo );
-// else if ((toolBar = dynamic_cast<QToolBar*>( widget )))
-// updatePalette( toolBar );
-// else if ((menuBar = dynamic_cast<QMenuBar*>( widget )))
-// updatePalette( menuBar );
-// }
-// }
-
-// void PlastikStyle::updatePalette( QComboBox *combo )
-// {
-// QPalette pal = QApplication::palette();
-// pal.setColor(QColorGroup::Dark,
-// pal.active().color(QColorGroup::Base));
-// pal.setColor(QColorGroup::Midlight,
-// pal.active().color(QColorGroup::Background));
-// combo->setPalette(pal);
-// }
-//
-// void PlastikStyle::updatePalette( QToolBar *bar )
-// {
-// QPalette pal = QApplication::palette();
-// pal.setColor(QColorGroup::Button,
-// pal.active().color(QColorGroup::Background));
-// bar->setPalette(pal);
-// }
-//
-// void PlastikStyle::updatePalette( QMenuBar *bar )
-// {
-// QPalette pal = QApplication::palette();
-// pal.setColor(QColorGroup::Button,
-// pal.active().color(QColorGroup::Background));
-// bar->setPalette(pal);
-// }
-
-// void PlastikStyle::slotDestroyed()
-// {
-// m_widgets.remove( (QWidget*) sender() );
-// }
-
bool PlastikStyle::eventFilter(QObject *obj, QEvent *ev)
{
--- kdeartwork/styles/plastik/plastik.h #1.12:1.13
@@ -238,8 +238,4 @@ protected:
bool eventFilter(QObject *, QEvent *);
-// void updatePalette( QComboBox * );
-// void updatePalette( QToolBar * );
-// void updatePalette( QMenuBar * );
-
QWidget* hoverWidget;
protected slots:
@@ -249,7 +245,4 @@ protected slots:
QColor getColor(const QColorGroup &cg, const ColorType t, const bool enabled=true)const;
-// void slotDestroyed();
-// void paletteChanged();
-
private:
// Disable copy constructor and = operator
@@ -269,6 +262,4 @@ private:
QCache<QPixmap> *pixmapCache;
-
-// QValueList<QWidget*> m_widgets;
};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic