Author: coolo Date: Fri Apr 11 14:38:58 2008 New Revision: 46407 URL: http://svn.opensuse.org/viewcvs/yast?rev=46407&view=rev Log: give menubuttons a class of their own (bnc#367857) Modified: trunk/qt/src/QY2Styler.cc trunk/qt/src/YQMenuButton.cc Modified: trunk/qt/src/QY2Styler.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/QY2Styler.cc?rev=46407&r1=46406&r2=46407&view=diff ============================================================================== --- trunk/qt/src/QY2Styler.cc (original) +++ trunk/qt/src/QY2Styler.cc Fri Apr 11 14:38:58 2008 @@ -1,3 +1,6 @@ +#define YUILogComponent "qt-wizard" +#include "YUILog.h" + #include "QY2Styler.h" #include <QFile> #include <QString> @@ -28,7 +31,10 @@ { _style = file.readAll(); processUrls( _style ); + yuiMilestone() << "set stylesheet " << qPrintable(filename) << endl; } + else + yuiMilestone() << "could not open " << qPrintable(filename) << endl; } void QY2Styler::processUrls(QString &text) Modified: trunk/qt/src/YQMenuButton.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/YQMenuButton.cc?rev=46407&r1=46406&r2=46407&view=diff ============================================================================== --- trunk/qt/src/YQMenuButton.cc (original) +++ trunk/qt/src/YQMenuButton.cc Fri Apr 11 14:38:58 2008 @@ -78,6 +78,7 @@ QMenu * menu = new QMenu( _qt_button ); YUI_CHECK_NEW( menu ); _qt_button->setMenu( menu ); + menu->setProperty( "class", "ymenubutton QMenu" ); connect( menu, SIGNAL( triggered ( QAction* ) ), this, SLOT ( menuEntryActivated( QAction* ) ) ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org