summaryrefslogtreecommitdiff
path: root/noncore/settings/appearance2/appearance.cpp
authorsandman <sandman>2002-11-28 00:35:42 (UTC)
committer sandman <sandman>2002-11-28 00:35:42 (UTC)
commit57ad30fb514428e068142e31ee40aa1615291123 (patch) (unidiff)
treee5fd98fec4f207730e1e7e6cbda1044e96711cad /noncore/settings/appearance2/appearance.cpp
parent27fe94d8aec5ffff56b39eb89b0e36f2b1c229ed (diff)
downloadopie-57ad30fb514428e068142e31ee40aa1615291123.zip
opie-57ad30fb514428e068142e31ee40aa1615291123.tar.gz
opie-57ad30fb514428e068142e31ee40aa1615291123.tar.bz2
two small fixes for the new "no style" list:
- changes are saved on "OK" even when the embedded lineedit has the focus - the order of the entries not reversed on each invocation anymore
Diffstat (limited to 'noncore/settings/appearance2/appearance.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/appearance2/appearance.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/noncore/settings/appearance2/appearance.cpp b/noncore/settings/appearance2/appearance.cpp
index 22b12b4..f611799 100644
--- a/noncore/settings/appearance2/appearance.cpp
+++ b/noncore/settings/appearance2/appearance.cpp
@@ -288,2 +288,3 @@ QWidget *Appearance::createAdvancedTab ( QWidget *parent, Config &cfg )
288 m_except-> header ( )-> setMovingEnabled ( false ); 288 m_except-> header ( )-> setMovingEnabled ( false );
289 m_except-> setSorting ( -1 );
289 lay-> addMultiCellWidget ( m_except, 2, 6, 0, 0 ); 290 lay-> addMultiCellWidget ( m_except, 2, 6, 0, 0 );
@@ -320,2 +321,3 @@ QWidget *Appearance::createAdvancedTab ( QWidget *parent, Config &cfg )
320 QStringList sl = cfg. readListEntry ( "NoStyle", ';' ); 321 QStringList sl = cfg. readListEntry ( "NoStyle", ';' );
322 QListViewItem *lvit = 0;
321 for ( QStringList::Iterator it = sl. begin ( ); it != sl. end ( ); ++it ) { 323 for ( QStringList::Iterator it = sl. begin ( ); it != sl. end ( ); ++it ) {
@@ -323,3 +325,3 @@ QWidget *Appearance::createAdvancedTab ( QWidget *parent, Config &cfg )
323 325
324 new ExceptListItem ( m_except, ( *it ). mid ( 1 ), fl & 0x01, fl & 0x02, fl & 0x04 ); 326 lvit = new ExceptListItem ( m_except, lvit, ( *it ). mid ( 1 ), fl & 0x01, fl & 0x02, fl & 0x04 );
325 } 327 }
@@ -457,2 +459,4 @@ void Appearance::accept ( )
457 459
460 m_except-> setFocus ( ); // if the focus was on the embedded line-edit, we have to move it away first, so the contents are updated
461
458 QStringList sl; 462 QStringList sl;
@@ -654,3 +658,3 @@ void Appearance::addExcept ( )
654{ 658{
655 ExceptListItem *it = new ExceptListItem ( m_except, tr( "<new>" ), true, true, true ); 659 ExceptListItem *it = new ExceptListItem ( m_except, 0, tr( "<new>" ), true, true, true );
656 m_except-> ensureItemVisible ( it ); 660 m_except-> ensureItemVisible ( it );