mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-16 21:12:31 -04:00
patch from Phenom to add columns and sorting to chat lobbies (modified: removed unused Delegate code)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6749 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
37f00e90a0
commit
5beefde701
2 changed files with 136 additions and 9 deletions
|
@ -5,6 +5,9 @@
|
|||
#include "ui_ChatLobbyWidget.h"
|
||||
#include "RsAutoUpdatePage.h"
|
||||
|
||||
class QModelIndex;
|
||||
class QPainter;
|
||||
|
||||
class RSTreeWidgetItemCompareRole;
|
||||
class ChatTabWidget ;
|
||||
class ChatLobbyDialog ;
|
||||
|
@ -36,6 +39,7 @@ public:
|
|||
protected slots:
|
||||
void lobbyChanged();
|
||||
void lobbyTreeWidgetCustomPopupMenu(QPoint);
|
||||
void lobbyTreeWidgetHeaderCustomPopupMenu( QPoint point );
|
||||
void createChatLobby();
|
||||
void subscribeItem();
|
||||
void unsubscribeItem();
|
||||
|
@ -57,6 +61,11 @@ private slots:
|
|||
void filterColumnChanged(int);
|
||||
void filterItems(const QString &text);
|
||||
|
||||
|
||||
void setShowUserCountColumn(bool show);
|
||||
void setShowTopicColumn(bool show);
|
||||
void setShowSubscribeColumn(bool show);
|
||||
|
||||
private:
|
||||
void autoSubscribeLobby(QTreeWidgetItem *item);
|
||||
|
||||
|
@ -73,5 +82,13 @@ private:
|
|||
QTextBrowser *_lobby_blank_page ;
|
||||
|
||||
std::map<QTreeWidgetItem*,time_t> _icon_changed_map ;
|
||||
|
||||
bool m_bProcessSettings;
|
||||
void processSettings(bool bLoad);
|
||||
|
||||
/** Defines the actions for the header context menu */
|
||||
QAction* showUserCountAct;
|
||||
QAction* showTopicAct;
|
||||
QAction* showSubscribeAct;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue