add a new show-cards-button, change styles handling in settings dialog

This commit is contained in:
doitux
2010-07-08 22:01:07 +00:00
parent 3b4c57d24f
commit 6104acc011
16 changed files with 326 additions and 143 deletions
@@ -11,8 +11,8 @@
//
#include "mystylelistitem.h"
MyStyleListItem::MyStyleListItem(QString s, QListWidget *w)
: QListWidgetItem(s, w, QListWidgetItem::UserType)
MyStyleListItem::MyStyleListItem(QStringList s, QTreeWidget *w)
: QTreeWidgetItem(w, s, QTreeWidgetItem::UserType)
{
}
@@ -20,8 +20,8 @@ MyStyleListItem::~MyStyleListItem()
{
}
bool MyStyleListItem::operator<( const QListWidgetItem &other ) const
bool MyStyleListItem::operator<( const QTreeWidgetItem &other ) const
{
return text().toLower() < other.text().toLower();
return text(0).toLower() < other.text(0).toLower();
}