mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-11 15:50:38 -04:00
RSTreeWidget:
- Added possibility to add own actions to header context menu - Added resort of items
This commit is contained in:
parent
48c3eedcf5
commit
4923c47eb3
2 changed files with 57 additions and 24 deletions
|
@ -43,6 +43,11 @@ public:
|
|||
void enableColumnCustomize(bool customizable);
|
||||
void setColumnCustomizable(int column, bool customizable);
|
||||
|
||||
void resort();
|
||||
|
||||
// Add QAction to context menu (action won't be deleted)
|
||||
void addHeaderContextMenuAction(QAction *action);
|
||||
|
||||
signals:
|
||||
void signalMouseMiddleButtonClicked(QTreeWidgetItem *item);
|
||||
void columnVisibleChanged(int column, bool visible);
|
||||
|
@ -63,6 +68,7 @@ private:
|
|||
bool mEnableColumnCustomize;
|
||||
quint32 mSettingsVersion;
|
||||
QMap<int, bool> mColumnCustomizable;
|
||||
QList<QAction*> mHeaderContextMenuActions;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue