projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minor correction
[quassel.git]
/
src
/
qtui
/
nicklistwidget.h
diff --git
a/src/qtui/nicklistwidget.h
b/src/qtui/nicklistwidget.h
index
5a091b8
..
a004f2a
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,6
+22,7
@@
#define _NICKLISTWIDGET_H_
#include "ui_nicklistwidget.h"
#define _NICKLISTWIDGET_H_
#include "ui_nicklistwidget.h"
+#include "types.h"
#include <QHash>
#include <QHash>
@@
-31,20
+32,27
@@
class NickView;
class NickListWidget : public QWidget {
Q_OBJECT
class NickListWidget : public QWidget {
Q_OBJECT
- public:
- NickListWidget(QWidget *parent = 0);
+ Q_PROPERTY(BufferId currentBuffer READ currentBuffer WRITE setCurrentBuffer); // FIXME BufferId
- public slots:
- void setBuffer(Buffer *);
- void reset();
+public:
+ NickListWidget(QWidget *parent = 0);
- private slots:
- void bufferDestroyed(QObject *);
+public slots:
+ BufferId currentBuffer() const;
+ void setCurrentBuffer(BufferId bufferId);
+ void reset();
- private:
- Ui::NickListWidget ui;
- QHash<Buffer *, NickView *> nickViews;
+protected:
+ virtual QSize sizeHint() const;
+private slots:
+ void removeBuffer(BufferId bufferId);
+
+private:
+ Ui::NickListWidget ui;
+ QHash<BufferId, NickView *> nickViews;
+ BufferId _currentBuffer;
+
};
#endif
};
#endif