2017-03-29 10:18:37 +00:00
|
|
|
#ifndef COMMENTSWIDGET_H
|
|
|
|
#define COMMENTSWIDGET_H
|
|
|
|
|
|
|
|
#include <QDockWidget>
|
|
|
|
#include <QTreeWidget>
|
|
|
|
#include <QMenu>
|
|
|
|
|
|
|
|
class MainWindow;
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class CommentsWidget;
|
|
|
|
}
|
|
|
|
|
|
|
|
class CommentsWidget : public QDockWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit CommentsWidget(MainWindow *main, QWidget *parent = 0);
|
|
|
|
~CommentsWidget();
|
|
|
|
|
|
|
|
QTreeWidget *commentsTreeWidget;
|
|
|
|
QTreeWidget *nestedCommentsTreeWidget;
|
|
|
|
void refreshTree();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_commentsTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column);
|
|
|
|
|
|
|
|
void on_toolButton_clicked();
|
|
|
|
|
|
|
|
void on_toolButton_2_clicked();
|
|
|
|
|
|
|
|
void showTitleContextMenu(const QPoint &pt);
|
|
|
|
|
|
|
|
void on_actionHorizontal_triggered();
|
|
|
|
|
|
|
|
void on_actionVertical_triggered();
|
|
|
|
|
2017-04-09 15:29:45 +00:00
|
|
|
bool eventFilter(QObject *obj, QEvent *event) override;
|
2017-03-29 10:18:37 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::CommentsWidget *ui;
|
|
|
|
|
|
|
|
MainWindow *main;
|
|
|
|
|
|
|
|
QWidget *title_bar;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // COMMENTSWIDGET_H
|