it's in QtGui, so I will probably try my luck using EgS' TreeModel as a base.
src/client/mappedselectionmodel.h
src/client/modelpropertymapper.cpp
src/client/modelpropertymapper.h
+src/client/nicktreemodel.cpp
+src/client/nicktreemodel.h
src/client/quasselui.h
src/client/selectionmodelsynchronizer.cpp
src/client/selectionmodelsynchronizer.h
src/qtopia/ui/coreconnectprogressdlg.ui
src/qtopia/ui/editcoreacctdlg.ui
src/qtopia/ui/mainwidget.ui
+src/qtopia/ui/nicklistwidget.ui
src/qtui
src/qtui/bufferwidget.cpp
src/qtui/bufferwidget.h
DEPMOD = common
QT_MOD = core network gui # gui is needed just for QColor... FIXME!
-SRCS += buffer.cpp buffertreemodel.cpp client.cpp clientsettings.cpp treemodel.cpp mappedselectionmodel.cpp selectionmodelsynchronizer.cpp modelpropertymapper.cpp
-HDRS += buffer.h buffertreemodel.h client.h clientsettings.h quasselui.h treemodel.h mappedselectionmodel.h selectionmodelsynchronizer.h modelpropertymapper.h
+SRCS += buffer.cpp buffertreemodel.cpp client.cpp clientsettings.cpp mappedselectionmodel.cpp modelpropertymapper.cpp \
+ nicktreemodel.cpp selectionmodelsynchronizer.cpp treemodel.cpp
+HDRS += buffer.h buffertreemodel.h client.h clientsettings.h quasselui.h mappedselectionmodel.h modelpropertymapper.h \
+ nicktreemodel.h selectionmodelsynchronizer.h treemodel.h
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
-#include "nickmodel.h"
+#include "nicktreemodel.h"
-NickModel::NickModel(QObject *parent) : QAbstractListModel(parent) {
+NickTreeModel::NickTreeModel(QObject *parent) : TreeModel(QList<QVariant>(), parent) {
//QStringList list; list << "test1" << "test2";
//setStringList(list);
}
-NickModel::~NickModel() {
+NickTreeModel::~NickTreeModel() {
}
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
-#ifndef _NICKMODEL_H_
-#define _NICKMODEL_H_
+#ifndef _NICKTREEMODEL_H_
+#define _NICKTREEMODEL_H_
-#include <QAbstractListModel>
+#include "treemodel.h"
-class NickModel : public QAbstractListModel {
+class NickTreeModel : public TreeModel {
Q_OBJECT
public:
- NickModel(QObject *parent = 0);
- ~NickModel();
+ NickTreeModel(QObject *parent = 0);
+ virtual ~NickTreeModel();
private:
DEPMOD =
QT_MOD = network
-SRCS += bufferinfo.cpp global.cpp logger.cpp message.cpp nickmodel.cpp settings.cpp signalproxy.cpp util.cpp networkinfo.cpp ircuser.cpp ircchannel.cpp
-HDRS += bufferinfo.h global.h logger.h message.h nickmodel.h settings.h signalproxy.h util.h networkinfo.h ircuser.h ircchannel.h types.h
+SRCS += bufferinfo.cpp global.cpp logger.cpp message.cpp settings.cpp signalproxy.cpp util.cpp networkinfo.cpp ircuser.cpp ircchannel.cpp
+HDRS += bufferinfo.h global.h logger.h message.h settings.h signalproxy.h util.h networkinfo.h ircuser.h ircchannel.h types.h
***************************************************************************/
#include "nicklistwidget.h"
-#include "nickmodel.h"
+#include "nicktreemodel.h"
NickListWidget::NickListWidget(QWidget *parent) : QDialog(parent) {
ui.setupUi(this);
}
-void NickListWidget::setNickModel(NickModel *model) {
+void NickListWidget::setNickModel(NickTreeModel *model) {
ui.nickView->setModel(model);
}
#include "ui_nicklistwidget.h"
-class NickModel;
+class NickTreeModel;
class NickListWidget : public QDialog {
Q_OBJECT
~NickListWidget();
public slots:
- void setNickModel(NickModel *model);
+ void setNickModel(NickTreeModel *model);
private:
Ui::NickListWidget ui;