Finishing the renaming of the BufferTreeView, since SVN doesn't allow
authorMarcus Eggenberger <egs@quassel-irc.org>
Tue, 1 Jan 2008 17:07:53 +0000 (17:07 +0000)
committerMarcus Eggenberger <egs@quassel-irc.org>
Tue, 1 Jan 2008 17:07:53 +0000 (17:07 +0000)
renaming if the file is localy changed. (buffertreemodel.[cpp|h]
to networkmodel.[cpp|h] and resulting includes).

src/client/client.pri
src/client/networkmodel.cpp [moved from src/client/buffertreemodel.cpp with 99% similarity]
src/client/networkmodel.h [moved from src/client/buffertreemodel.h with 100% similarity]
src/qtopia/qtopiamainwin.cpp
src/uisupport/bufferview.cpp
src/uisupport/bufferviewfilter.cpp
src/uisupport/bufferviewfilter.h

index 4f16a71..740f74e 100644 (file)
@@ -1,6 +1,6 @@
 DEPMOD = common
 QT_MOD = core network gui   # gui is needed just for QColor... FIXME!
-SRCS += buffer.cpp buffertreemodel.cpp client.cpp clientsettings.cpp mappedselectionmodel.cpp modelpropertymapper.cpp \
+SRCS += buffer.cpp networkmodel.cpp client.cpp clientsettings.cpp mappedselectionmodel.cpp modelpropertymapper.cpp \
         nickmodel.cpp selectionmodelsynchronizer.cpp treemodel.cpp
-HDRS += buffer.h buffertreemodel.h client.h clientsettings.h quasselui.h mappedselectionmodel.h modelpropertymapper.h \
+HDRS += buffer.h networkmodel.h client.h clientsettings.h quasselui.h mappedselectionmodel.h modelpropertymapper.h \
         nickmodel.h selectionmodelsynchronizer.h treemodel.h
similarity index 99%
rename from src/client/buffertreemodel.cpp
rename to src/client/networkmodel.cpp
index 865c4a4..9901615 100644 (file)
@@ -20,7 +20,7 @@
 
 #include <QColor>  // FIXME Dependency on QtGui!
 
-#include "buffertreemodel.h"
+#include "networkmodel.h"
 
 #include "mappedselectionmodel.h"
 #include <QAbstractItemView>
index baa1dc6..6388058 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "qtopiamainwin.h"
 
-#include "buffertreemodel.h"
+#include "networkmodel.h"
 #include "bufferviewwidget.h"
 #include "nicklistwidget.h"
 #include "chatline.h"
@@ -62,7 +62,7 @@ QtopiaMainWin::QtopiaMainWin(QWidget *parent, Qt::WFlags flags) : QMainWindow(pa
   mainWidget = new MainWidget(this);
   setCentralWidget(mainWidget);
 
-  BufferTreeModel *model = Client::bufferModel();
+  NetworkModel *model = Client::networkModel();
   connect(model, SIGNAL(bufferSelected(Buffer *)), this, SLOT(showBuffer(Buffer *)));
 
   toolBar = new QToolBar(this);
@@ -135,7 +135,7 @@ void QtopiaMainWin::connectedToCore() {
   // FIXME just for testing: select first available buffer
   if(Client::allBufferInfos().count() > 1) {
     Buffer *b = Client::buffer(Client::allBufferInfos()[1]);
-    Client::bufferModel()->selectBuffer(b);
+    Client::networkModel()->selectBuffer(b);
   }
 #endif
 }
index e362da5..37c37ac 100644 (file)
@@ -21,7 +21,7 @@
 #include "client.h"
 #include "buffer.h"
 #include "bufferview.h"
-#include "buffertreemodel.h"
+#include "networkmodel.h"
 
 /*****************************************
 * The TreeView showing the Buffers
@@ -64,12 +64,12 @@ void BufferView::setModel(QAbstractItemModel *model) {
 }
 
 void BufferView::joinChannel(const QModelIndex &index) {
-  Buffer::Type bufferType = (Buffer::Type)index.data(BufferTreeModel::BufferTypeRole).toInt();
+  Buffer::Type bufferType = (Buffer::Type)index.data(NetworkModel::BufferTypeRole).toInt();
 
   if(bufferType != Buffer::ChannelType)
     return;
   
-  Client::fakeInput(index.data(BufferTreeModel::BufferUidRole).toUInt(), QString("/JOIN %1").arg(index.sibling(index.row(), 0).data().toString()));
+  Client::fakeInput(index.data(NetworkModel::BufferUidRole).toUInt(), QString("/JOIN %1").arg(index.sibling(index.row(), 0).data().toString()));
 }
 
 void BufferView::keyPressEvent(QKeyEvent *event) {
index 9f0d4a1..a5c3d15 100644 (file)
@@ -20,6 +20,8 @@
 
 #include "bufferviewfilter.h"
 
+#include "networkmodel.h"
+
 /*****************************************
 * The Filter for the Tree View
 *****************************************/
index 2a91733..2586ff2 100644 (file)
@@ -26,7 +26,6 @@
 #include <QSortFilterProxyModel>
 #include <QSet>
 #include "buffer.h"
-#include "buffertreemodel.h"
 
 /*****************************************
  * Buffer View Filter