mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Code maintenance for Qt 5:
- Changed code for GXS git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6859 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
6780ff2cff
commit
3a72b27632
@ -24,6 +24,7 @@
|
||||
#include <QBuffer>
|
||||
#include <QMenu>
|
||||
#include <QDir>
|
||||
#include <QMimeData>
|
||||
|
||||
#include <gui/RetroShareLink.h>
|
||||
#include "CreateGxsChannelMsg.h"
|
||||
|
@ -37,6 +37,7 @@
|
||||
#include "gui/msgs/MessageComposer.h"
|
||||
#include "util/DateTime.h"
|
||||
#include "gui/common/UIStateHelper.h"
|
||||
#include "util/QtVersion.h"
|
||||
|
||||
#include <retroshare/rsgxsforums.h>
|
||||
#include <retroshare/rspeers.h>
|
||||
@ -153,7 +154,7 @@ GxsForumThreadWidget::GxsForumThreadWidget(const std::string &forumId, QWidget *
|
||||
|
||||
/* Set header resize modes and initial section sizes */
|
||||
QHeaderView * ttheader = ui->threadTreeWidget->header () ;
|
||||
ttheader->setResizeMode (COLUMN_THREAD_TITLE, QHeaderView::Interactive);
|
||||
QHeaderView_setSectionResizeMode(ttheader, COLUMN_THREAD_TITLE, QHeaderView::Interactive);
|
||||
ttheader->resizeSection (COLUMN_THREAD_DATE, 140);
|
||||
ttheader->resizeSection (COLUMN_THREAD_TITLE, 290);
|
||||
|
||||
@ -177,7 +178,7 @@ GxsForumThreadWidget::GxsForumThreadWidget(const std::string &forumId, QWidget *
|
||||
|
||||
/* Set header sizes for the fixed columns and resize modes, must be set after processSettings */
|
||||
ttheader->resizeSection (COLUMN_THREAD_READ, 24);
|
||||
ttheader->setResizeMode (COLUMN_THREAD_READ, QHeaderView::Fixed);
|
||||
QHeaderView_setSectionResizeMode(ttheader, COLUMN_THREAD_READ, QHeaderView::Fixed);
|
||||
ttheader->hideSection (COLUMN_THREAD_CONTENT);
|
||||
|
||||
ui->progressBar->hide();
|
||||
|
@ -37,6 +37,7 @@
|
||||
#include <QMessageBox>
|
||||
#include <QHeaderView>
|
||||
|
||||
#include "util/QtVersion.h"
|
||||
|
||||
/* Images for context menu icons */
|
||||
#define IMAGE_REMOVEFRIEND ":/images/removefriend16.png"
|
||||
@ -60,18 +61,18 @@ ExampleDialog::ExampleDialog(QWidget *parent)
|
||||
|
||||
/* Set header resize modes and initial section sizes */
|
||||
QHeaderView * _header = ui.peertreeWidget->header () ;
|
||||
_header->setResizeMode (0, QHeaderView::Custom);
|
||||
_header->setResizeMode (1, QHeaderView::Interactive);
|
||||
_header->setResizeMode (2, QHeaderView::Interactive);
|
||||
_header->setResizeMode (3, QHeaderView::Interactive);
|
||||
_header->setResizeMode (4, QHeaderView::Interactive);
|
||||
_header->setResizeMode (5, QHeaderView::Interactive);
|
||||
_header->setResizeMode (6, QHeaderView::Interactive);
|
||||
_header->setResizeMode (7, QHeaderView::Interactive);
|
||||
_header->setResizeMode (8, QHeaderView::Interactive);
|
||||
_header->setResizeMode (9, QHeaderView::Interactive);
|
||||
_header->setResizeMode (10, QHeaderView::Interactive);
|
||||
_header->setResizeMode (11, QHeaderView::Interactive);
|
||||
QHeaderView_setSectionResizeMode(_header, 0, QHeaderView::Custom);
|
||||
QHeaderView_setSectionResizeMode(_header, 1, QHeaderView::Interactive);
|
||||
QHeaderView_setSectionResizeMode(_header, 2, QHeaderView::Interactive);
|
||||
QHeaderView_setSectionResizeMode(_header, 3, QHeaderView::Interactive);
|
||||
QHeaderView_setSectionResizeMode(_header, 4, QHeaderView::Interactive);
|
||||
QHeaderView_setSectionResizeMode(_header, 5, QHeaderView::Interactive);
|
||||
QHeaderView_setSectionResizeMode(_header, 6, QHeaderView::Interactive);
|
||||
QHeaderView_setSectionResizeMode(_header, 7, QHeaderView::Interactive);
|
||||
QHeaderView_setSectionResizeMode(_header, 8, QHeaderView::Interactive);
|
||||
QHeaderView_setSectionResizeMode(_header, 9, QHeaderView::Interactive);
|
||||
QHeaderView_setSectionResizeMode(_header, 10, QHeaderView::Interactive);
|
||||
QHeaderView_setSectionResizeMode(_header, 11, QHeaderView::Interactive);
|
||||
|
||||
_header->resizeSection ( 0, 25 );
|
||||
_header->resizeSection ( 1, 100 );
|
||||
|
Loading…
Reference in New Issue
Block a user