summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/styles/theme/themeset.cpp7
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
@@ -51,3 +51,3 @@ class MyItem : public QListViewItem
public:
- MyItem ( QListView *lv, const QString &name, const QString &comm, const QString &theme ) : QListViewItem ( lv, name, comm )
+ MyItem ( QListView *lv, QListViewItem *after, const QString &name, const QString &comm, const QString &theme ) : QListViewItem ( lv, after, name, comm )
{
@@ -82,5 +82,6 @@ ThemeSettings::ThemeSettings ( QWidget* parent, const char *name, WFlags fl )
m_list-> setAllColumnsShowFocus ( true );
+ m_list-> setSorting ( -1 );
vbox-> addWidget ( m_list, 10 );
- QListViewItem *item = new MyItem ( m_list, tr( "[No theme]" ), "", "" );
+ QListViewItem *item = new MyItem ( m_list, 0, tr( "[No theme]" ), "", "" );
m_list-> setSelected ( item, true );
@@ -102,3 +103,3 @@ ThemeSettings::ThemeSettings ( QWidget* parent, const char *name, WFlags fl )
- item = new MyItem ( m_list, name, comm, fname );
+ item = new MyItem ( m_list, item, name, comm, fname );
if ( active == fname ) {