mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-25 14:50:54 -04:00
tree widget converted to tree view in MessageDiwalogue and other fixes
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2300 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a3a66e8dc5
commit
5e9e342bc9
4 changed files with 520 additions and 182 deletions
|
@ -23,9 +23,14 @@
|
|||
#define _MESSAGESDIALOG_H
|
||||
|
||||
#include "settings/rsharesettings.h"
|
||||
|
||||
#include <list>
|
||||
#include <QFileDialog>
|
||||
#include <QModelIndex>
|
||||
#include <QSortFilterProxyModel>
|
||||
|
||||
#include <QVariant>
|
||||
|
||||
#include "rsiface/rsmsgs.h"
|
||||
#include "mainpage.h"
|
||||
#include "ui_MessagesDialog.h"
|
||||
|
||||
|
@ -37,11 +42,13 @@ public:
|
|||
/** Default Constructor */
|
||||
MessagesDialog(QWidget *parent = 0);
|
||||
/** Default Destructor */
|
||||
void insertMsgTxtAndFiles();
|
||||
void insertMsgTxtAndFiles(QModelIndex index = QModelIndex());
|
||||
virtual void keyPressEvent(QKeyEvent *) ;
|
||||
void updateMessageSummaryList();
|
||||
|
||||
public slots:
|
||||
void insertMessages();
|
||||
|
||||
|
||||
private slots:
|
||||
|
||||
|
@ -50,7 +57,7 @@ private slots:
|
|||
void msgfilelistWidgetCostumPopupMenu(QPoint);
|
||||
|
||||
void changeBox( int newrow );
|
||||
void updateCurrentMessage ( QTreeWidgetItem * item, QTreeWidgetItem * item2 );
|
||||
void updateCurrentMessage(const QModelIndex&);
|
||||
|
||||
void newmessage();
|
||||
|
||||
|
@ -79,16 +86,24 @@ private slots:
|
|||
void buttonstextundericon();
|
||||
|
||||
void loadToolButtonsettings();
|
||||
|
||||
void filterRegExpChanged();
|
||||
void filterColumnChanged();
|
||||
|
||||
private:
|
||||
/** A RetroShare Settings object used for saving/loading settings */
|
||||
RshareSettings *_settings;
|
||||
|
||||
class QStandardItemModel *MessagesModel;
|
||||
QSortFilterProxyModel *proxyModel;
|
||||
|
||||
bool getCurrentMsg(std::string &cid, std::string &mid);
|
||||
void setMsgAsRead(QTreeWidgetItem *);
|
||||
|
||||
void setMsgAsRead(const QModelIndex &index);
|
||||
|
||||
void setCurrentFileName(const QString &fileName);
|
||||
|
||||
|
||||
|
||||
std::string mCurrCertId;
|
||||
std::string mCurrMsgId;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue