-rw-r--r-- | noncore/settings/appearance2/appearance.cpp | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/noncore/settings/appearance2/appearance.cpp b/noncore/settings/appearance2/appearance.cpp index 2b35119..8dc70ee 100644 --- a/noncore/settings/appearance2/appearance.cpp +++ b/noncore/settings/appearance2/appearance.cpp @@ -422,5 +422,5 @@ Appearance::Appearance( QWidget* parent, const char* name, WFlags ) QWidget *styletab; - + m_color_list = 0; - + tw-> addTab ( styletab = createStyleTab ( tw, config ), "appearance/style", tr( "Style" )); @@ -429,3 +429,3 @@ Appearance::Appearance( QWidget* parent, const char* name, WFlags ) tw-> addTab ( createDecoTab ( tw, config ), "appearance/deco", tr( "Windows" ) ); - tw-> addTab ( m_advtab = createAdvancedTab ( tw, config ), "appearance/advanced", tr( "Advanced" ) ); + tw-> addTab ( m_advtab = createAdvancedTab ( tw, config ), "SettingsIcon", tr( "Advanced" ) ); @@ -532,9 +532,9 @@ void Appearance::styleClicked ( int index ) m_style_settings-> setEnabled ( sli ? sli-> hasSettings ( ) : false ); - + if ( m_sample && sli && sli-> style ( )) { int ci = m_color_list ? m_color_list-> currentItem ( ) : -1; - - m_sample-> setStyle2 ( sli-> style ( ), ci < 0 ? palette ( ) : ((ColorListItem *) m_color_list-> item ( ci ))-> palette ( )); + + m_sample-> setStyle2 ( sli-> style ( ), ci < 0 ? palette ( ) : ((ColorListItem *) m_color_list-> item ( ci ))-> palette ( )); } - + m_style_changed |= ( index != m_original_style ); @@ -570,6 +570,6 @@ void Appearance::decoClicked ( int index ) DecoListItem *dli = (DecoListItem *) m_deco_list-> item ( index ); - + if ( m_sample ) { if ( dli && dli-> interface ( )) - m_sample-> setDecoration ( dli-> interface ( )); + m_sample-> setDecoration ( dli-> interface ( )); else @@ -583,3 +583,3 @@ void Appearance::fontClicked ( const QFont &f ) { - m_font_changed |= ( f != m_sample-> font ( )); + m_font_changed |= ( f != m_sample-> font ( )); m_sample-> setFont ( f ); @@ -605,6 +605,6 @@ void Appearance::editSchemeClicked ( ) QColor colors [QColorGroup::NColorRoles]; - + for ( QColorGroup::ColorRole role = (QColorGroup::ColorRole) 0; role != QColorGroup::NColorRoles; ((int) role )++ ) { QColor col = item-> color ( role ); - + if ( col. isValid ( )) { @@ -612,3 +612,3 @@ void Appearance::editSchemeClicked ( ) colors [cnt] = col; - + cnt++; @@ -622,3 +622,3 @@ void Appearance::editSchemeClicked ( ) cnt = 0; - + for ( QColorGroup::ColorRole role = (QColorGroup::ColorRole) 0; role != QColorGroup::NColorRoles; ((int) role )++ ) { @@ -629,6 +629,6 @@ void Appearance::editSchemeClicked ( ) } - + m_color_list-> setCurrentItem ( 0 ); colorClicked ( 0 ); - + m_color_changed = true; @@ -660,5 +660,5 @@ void Appearance::saveSchemeClicked() if ( !file. exists ( )) - { + { QPalette p = item-> palette ( ); - + Config config ( file.name(), Config::File ); @@ -667,5 +667,5 @@ void Appearance::saveSchemeClicked() item-> save ( config ); - + config. write ( ); // need to flush the config info first - + m_color_list-> insertItem ( new ColorListItem ( schemename, config )); @@ -724,3 +724,3 @@ void Appearance::upExcept ( ) ExceptListItem *it = (ExceptListItem *) m_except-> selectedItem ( ); - + if ( it && it-> itemAbove ( )) @@ -732,3 +732,3 @@ void Appearance::downExcept ( ) ExceptListItem *it = (ExceptListItem *) m_except-> selectedItem ( ); - + if ( it && it-> itemBelow ( )) @@ -739,9 +739,9 @@ class ExEdit : public QLineEdit { public: - ExEdit ( ExceptListItem *item ) + ExEdit ( ExceptListItem *item ) : QLineEdit ( item-> listView ( )-> viewport ( ), "exedit" ), it ( item ) - { + { setFrame ( false ); - + QRect r = it-> listView ( )-> itemRect ( it ); - + int x = it-> listView ( )-> header ( )-> cellPos ( 3 ) - 1; @@ -750,10 +750,10 @@ public: int h = r. height ( ); // + 2; - - setText ( it-> pattern ( )); + + setText ( it-> pattern ( )); setGeometry ( x, y, w, h ); - - qDebug ( "ExEdit: [%s] at %d,%d %d,%d", it->text(2).latin1(),x,y,w,h); - + + qDebug ( "ExEdit: [%s] at %d,%d %d,%d", it->text(2).latin1(),x,y,w,h); + m_out = true; - + show ( ); @@ -763,4 +763,4 @@ public: } - - virtual void focusOutEvent ( QFocusEvent * ) + + virtual void focusOutEvent ( QFocusEvent * ) { @@ -771,3 +771,3 @@ public: } - + virtual void keyPressEvent ( QKeyEvent *e ) @@ -783,3 +783,3 @@ public: } - + private: |