projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Topics are now editable even when they were empty
[quassel.git]
/
src
/
qtui
/
nicklistwidget.h
diff --git
a/src/qtui/nicklistwidget.h
b/src/qtui/nicklistwidget.h
index
5a091b8
..
8c26605
100644
(file)
--- a/
src/qtui/nicklistwidget.h
+++ b/
src/qtui/nicklistwidget.h
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-0
7 by the Quassel IRC Team
*
+ * Copyright (C) 2005-0
8 by the Quassel Project
*
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-22,29
+22,36
@@
#define _NICKLISTWIDGET_H_
#include "ui_nicklistwidget.h"
#define _NICKLISTWIDGET_H_
#include "ui_nicklistwidget.h"
+#include "abstractitemview.h"
+
+#include "types.h"
#include <QHash>
#include <QHash>
+#include "buffermodel.h"
+
class Buffer;
class NickView;
class Buffer;
class NickView;
-class NickListWidget : public
QWidget
{
+class NickListWidget : public
AbstractItemView
{
Q_OBJECT
Q_OBJECT
- public:
- NickListWidget(QWidget *parent = 0);
-
- public slots:
- void setBuffer(Buffer *);
- void reset();
+public:
+ NickListWidget(QWidget *parent = 0);
-
private slots
:
-
void bufferDestroyed(QObject *)
;
+
protected
:
+
virtual QSize sizeHint() const
;
-
private
:
-
Ui::NickListWidget ui
;
-
QHash<Buffer *, NickView *> nickViews
;
+
protected slots
:
+
virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous)
;
+
virtual void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end)
;
+private slots:
+ void removeBuffer(BufferId bufferId);
+
+private:
+ Ui::NickListWidget ui;
+ QHash<BufferId, NickView *> nickViews;
};
#endif
};
#endif