mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-11 15:50:38 -04:00
Added customize of columns to RSTreeWidget.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8582 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
46a4273668
commit
e8e02b9c79
2 changed files with 89 additions and 0 deletions
|
@ -37,17 +37,28 @@ public:
|
|||
|
||||
void filterItems(int filterColumn, const QString &text);
|
||||
|
||||
void processSettings(bool load);
|
||||
|
||||
void setColumnCustomizable(bool customizable);
|
||||
|
||||
signals:
|
||||
void signalMouseMiddleButtonClicked(QTreeWidgetItem *item);
|
||||
void columnVisibleChanged(int column, bool visible);
|
||||
|
||||
private:
|
||||
bool filterItem(QTreeWidgetItem *item, int filterColumn, const QString &text);
|
||||
|
||||
private slots:
|
||||
void headerContextMenuRequested(const QPoint &pos);
|
||||
void columnVisible();
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *event);
|
||||
virtual void mousePressEvent(QMouseEvent *event);
|
||||
|
||||
private:
|
||||
QString mPlaceholderText;
|
||||
bool mColumnCustomizable;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue