From 4f4bad4d5abb9f39ba6b20717b42a871bdb4539a Mon Sep 17 00:00:00 2001 From: defnax Date: Sun, 30 May 2010 23:49:20 +0000 Subject: [PATCH] moved Forum Title Column as First column git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3040 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/ForumsDialog.cpp | 8 +++++--- retroshare-gui/src/gui/ForumsDialog.ui | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/retroshare-gui/src/gui/ForumsDialog.cpp b/retroshare-gui/src/gui/ForumsDialog.cpp index fa87861e0..6acc6a5f2 100644 --- a/retroshare-gui/src/gui/ForumsDialog.cpp +++ b/retroshare-gui/src/gui/ForumsDialog.cpp @@ -60,8 +60,8 @@ #define VIEW_FLAT 2 #define COLUMN_COUNT 7 -#define COLUMN_DATE 0 -#define COLUMN_TITLE 1 +#define COLUMN_TITLE 0 +#define COLUMN_DATE 1 #define COLUMN_AUTHOR 2 #define COLUMN_SIGNED 3 #define COLUMN_PARENTID 4 @@ -147,6 +147,8 @@ ForumsDialog::ForumsDialog(QWidget *parent) ttheader->resizeSection ( COLUMN_DATE, 170 ); ttheader->resizeSection ( COLUMN_TITLE, 170 ); ttheader->hideSection (COLUMN_CONTENT); + + ui.threadTreeWidget->sortItems( COLUMN_DATE, Qt::DescendingOrder ); m_ForumNameFont = QFont("Times", 12, QFont::Bold); @@ -842,7 +844,7 @@ void ForumsDialog::insertThreads() if (flatView) { child = new QTreeWidgetItem(); - ui.threadTreeWidget->setRootIsDecorated( false ); + ui.threadTreeWidget->setRootIsDecorated( true ); } else { diff --git a/retroshare-gui/src/gui/ForumsDialog.ui b/retroshare-gui/src/gui/ForumsDialog.ui index 66837a963..7d9c594a9 100644 --- a/retroshare-gui/src/gui/ForumsDialog.ui +++ b/retroshare-gui/src/gui/ForumsDialog.ui @@ -875,12 +875,12 @@ background: white;} - Date + Title - Title + Date