-rw-r--r-- | noncore/styles/theme/themeset.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/noncore/styles/theme/themeset.cpp b/noncore/styles/theme/themeset.cpp index 4a4efcb..d4005bc 100644 --- a/noncore/styles/theme/themeset.cpp +++ b/noncore/styles/theme/themeset.cpp | |||
@@ -50,5 +50,5 @@ class MyItem : public QListViewItem | |||
50 | { | 50 | { |
51 | public: | 51 | public: |
52 | MyItem ( QListView *lv, const QString &name, const QString &comm, const QString &theme ) : QListViewItem ( lv, name, comm ) | 52 | MyItem ( QListView *lv, QListViewItem *after, const QString &name, const QString &comm, const QString &theme ) : QListViewItem ( lv, after, name, comm ) |
53 | { | 53 | { |
54 | m_theme = theme; | 54 | m_theme = theme; |
@@ -81,7 +81,8 @@ ThemeSettings::ThemeSettings ( QWidget* parent, const char *name, WFlags fl ) | |||
81 | m_list-> setSelectionMode ( QListView::Single ); | 81 | m_list-> setSelectionMode ( QListView::Single ); |
82 | m_list-> setAllColumnsShowFocus ( true ); | 82 | m_list-> setAllColumnsShowFocus ( true ); |
83 | m_list-> setSorting ( -1 ); | ||
83 | vbox-> addWidget ( m_list, 10 ); | 84 | vbox-> addWidget ( m_list, 10 ); |
84 | 85 | ||
85 | QListViewItem *item = new MyItem ( m_list, tr( "[No theme]" ), "", "" ); | 86 | QListViewItem *item = new MyItem ( m_list, 0, tr( "[No theme]" ), "", "" ); |
86 | m_list-> setSelected ( item, true ); | 87 | m_list-> setSelected ( item, true ); |
87 | 88 | ||
@@ -101,5 +102,5 @@ ThemeSettings::ThemeSettings ( QWidget* parent, const char *name, WFlags fl ) | |||
101 | QString fname = (*it). left ((*it). length ( ) - 8 ); | 102 | QString fname = (*it). left ((*it). length ( ) - 8 ); |
102 | 103 | ||
103 | item = new MyItem ( m_list, name, comm, fname ); | 104 | item = new MyItem ( m_list, item, name, comm, fname ); |
104 | if ( active == fname ) { | 105 | if ( active == fname ) { |
105 | m_list-> setSelected ( item, true ); | 106 | m_list-> setSelected ( item, true ); |