mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-12 02:55:18 -04:00
Added new class RSTreeWidgetItem derived from QTreeWidgetItem for sorting strings case insensitive without proxy model.
Sort strings case insensitive in NetworkDialog, PeersDialog (changed to RSTreeWidgetItem), MessengerWindow (changed to RSTreeWidgetItem) and SharedFilesDialog (with folders first). Sort the columns size and age in SharedFilesDialog by internal data and not by the shown string. Save and load layout of the SharedFilesDialog in profile. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3515 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
52e0d2a095
commit
a51bf3da67
12 changed files with 407 additions and 106 deletions
|
@ -26,6 +26,7 @@
|
|||
#include "ui_SharedFilesDialog.h"
|
||||
|
||||
class RemoteDirModel;
|
||||
class QSortFilterProxyModel;
|
||||
|
||||
class SharedFilesDialog : public RsAutoUpdatePage
|
||||
{
|
||||
|
@ -35,6 +36,7 @@ public:
|
|||
/** Default Constructor */
|
||||
SharedFilesDialog(QWidget *parent = 0);
|
||||
/** Default Destructor */
|
||||
~SharedFilesDialog();
|
||||
|
||||
virtual void updatePage() { checkUpdate() ; }
|
||||
|
||||
|
@ -94,8 +96,13 @@ private:
|
|||
|
||||
//QMenu* contextMnu2;
|
||||
|
||||
void processSettings(bool bLoad);
|
||||
|
||||
void copyLink (const QModelIndexList& lst, bool remote);
|
||||
|
||||
QModelIndexList getRemoteSelected();
|
||||
QModelIndexList getLocalSelected();
|
||||
|
||||
/** Defines the actions for the context menu for QTreeWidget */
|
||||
QAction* openfileAct;
|
||||
QAction* openfolderAct;
|
||||
|
@ -116,7 +123,9 @@ private:
|
|||
|
||||
/* RemoteDirModel */
|
||||
RemoteDirModel *model;
|
||||
QSortFilterProxyModel *proxyModel;
|
||||
RemoteDirModel *localModel;
|
||||
QSortFilterProxyModel *localProxyModel;
|
||||
|
||||
QString currentCommand;
|
||||
QString currentFile;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue