summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThilo Cestonaro <thilo@cestona.ro>2011-04-20 13:11:46 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-05-07 07:22:32 (GMT)
commitd631201597042e79ecef187ac7fd795cd7cc0cc0 (patch)
tree0e4d19b3bd5c5ad49324e5310b8a5dc9ab74cb96 /Swift/QtUI/QtChatWindow.h
parent5e677a5e82ca660bb1fe25333baf4822893cdf3d (diff)
downloadswift-contrib-d631201597042e79ecef187ac7fd795cd7cc0cc0.zip
swift-contrib-d631201597042e79ecef187ac7fd795cd7cc0cc0.tar.bz2
Remember splitter position in a MUC dialog.
License: This patch is BSD-licensed, see http://www.opensource.org/licenses/bsd-license.php Signed-off-by: Remko Tronçon <git@el-tramo.be>
Diffstat (limited to 'Swift/QtUI/QtChatWindow.h')
-rw-r--r--Swift/QtUI/QtChatWindow.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Swift/QtUI/QtChatWindow.h b/Swift/QtUI/QtChatWindow.h
index a95041e..cb87970 100644
--- a/Swift/QtUI/QtChatWindow.h
+++ b/Swift/QtUI/QtChatWindow.h
@@ -18,6 +18,7 @@ class QTextEdit;
class QLineEdit;
class QComboBox;
class QLabel;
+class QSplitter;
namespace Swift {
class QtChatView;
@@ -57,9 +58,14 @@ namespace Swift {
void replaceLastMessage(const std::string& message);
void setAckState(const std::string& id, AckState state);
void flash();
+ QByteArray getSplitterState();
+
+ public slots:
+ void handleChangeSplitterState(QByteArray state);
signals:
void geometryChanged();
+ void splitterMoved();
protected slots:
void qAppFocusChanged(QWidget* old, QWidget* now);
@@ -74,6 +80,7 @@ namespace Swift {
void returnPressed();
void handleInputChanged();
void handleKeyPressEvent(QKeyEvent* event);
+ void handleSplitterMoved(int pos, int index);
private:
void updateTitleWithUnreadCount();
@@ -104,5 +111,6 @@ namespace Swift {
UIEventStream* eventStream_;
bool inputEnabled_;
IDGenerator id_;
+ QSplitter *logRosterSplitter_;
};
}