mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
Rework forms layout to workaround some stylesheet issues (Qt client)
This commit is contained in:
@@ -28,6 +28,7 @@ set(${PROJECT_NAME}_SOURCES
|
|||||||
about.cc
|
about.cc
|
||||||
add-data.cc
|
add-data.cc
|
||||||
app.cc
|
app.cc
|
||||||
|
column-resizer.cc
|
||||||
dbus-adaptor.cc
|
dbus-adaptor.cc
|
||||||
details.cc
|
details.cc
|
||||||
favicon.cc
|
favicon.cc
|
||||||
@@ -67,6 +68,7 @@ set(${PROJECT_NAME}_HEADERS
|
|||||||
about.h
|
about.h
|
||||||
add-data.h
|
add-data.h
|
||||||
app.h
|
app.h
|
||||||
|
column-resizer.h
|
||||||
dbus-adaptor.h
|
dbus-adaptor.h
|
||||||
details.h
|
details.h
|
||||||
favicon.h
|
favicon.h
|
||||||
|
|||||||
82
qt/column-resizer.cc
Normal file
82
qt/column-resizer.cc
Normal file
@@ -0,0 +1,82 @@
|
|||||||
|
/*
|
||||||
|
* This file Copyright (C) 2015 Mnemosyne LLC
|
||||||
|
*
|
||||||
|
* It may be used under the GNU GPL versions 2 or 3
|
||||||
|
* or any future license endorsed by Mnemosyne LLC.
|
||||||
|
*
|
||||||
|
* $Id$
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <QEvent>
|
||||||
|
#include <QGridLayout>
|
||||||
|
#include <QTimer>
|
||||||
|
|
||||||
|
#include "column-resizer.h"
|
||||||
|
|
||||||
|
namespace
|
||||||
|
{
|
||||||
|
int
|
||||||
|
itemColumnSpan (QGridLayout * layout, const QLayoutItem * item)
|
||||||
|
{
|
||||||
|
for (int i = 0, count = layout->count (); i < count; ++i)
|
||||||
|
{
|
||||||
|
if (layout->itemAt (i) != item)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
int row, column, rowSpan, columnSpan;
|
||||||
|
layout->getItemPosition (i, &row, &column, &rowSpan, &columnSpan);
|
||||||
|
return columnSpan;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ColumnResizer::ColumnResizer (QObject * parent):
|
||||||
|
QObject (parent),
|
||||||
|
myTimer (new QTimer (this)),
|
||||||
|
myLayouts ()
|
||||||
|
{
|
||||||
|
myTimer->setSingleShot (true);
|
||||||
|
connect (myTimer, SIGNAL (timeout ()), SLOT (update ()));
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
ColumnResizer::addLayout (QGridLayout * layout)
|
||||||
|
{
|
||||||
|
myLayouts << layout;
|
||||||
|
scheduleUpdate ();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
ColumnResizer::eventFilter (QObject * object, QEvent * event)
|
||||||
|
{
|
||||||
|
if (event->type () == QEvent::Resize)
|
||||||
|
scheduleUpdate ();
|
||||||
|
return QObject::eventFilter (object, event);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
ColumnResizer::update ()
|
||||||
|
{
|
||||||
|
int maxWidth = 0;
|
||||||
|
foreach (QGridLayout * layout, myLayouts)
|
||||||
|
{
|
||||||
|
for (int i = 0, count = layout->rowCount (); i < count; ++i)
|
||||||
|
{
|
||||||
|
QLayoutItem * item = layout->itemAtPosition (i, 0);
|
||||||
|
if (item == nullptr || itemColumnSpan (layout, item) > 1)
|
||||||
|
continue;
|
||||||
|
maxWidth = qMax (maxWidth, item->sizeHint ().width ());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (QGridLayout * layout, myLayouts)
|
||||||
|
layout->setColumnMinimumWidth (0, maxWidth);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
ColumnResizer::scheduleUpdate ()
|
||||||
|
{
|
||||||
|
myTimer->start (0);
|
||||||
|
}
|
||||||
41
qt/column-resizer.h
Normal file
41
qt/column-resizer.h
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
/*
|
||||||
|
* This file Copyright (C) 2015 Mnemosyne LLC
|
||||||
|
*
|
||||||
|
* It may be used under the GNU GPL versions 2 or 3
|
||||||
|
* or any future license endorsed by Mnemosyne LLC.
|
||||||
|
*
|
||||||
|
* $Id$
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef QTR_COLUMN_RESIZER_H
|
||||||
|
#define QTR_COLUMN_RESIZER_H
|
||||||
|
|
||||||
|
#include <QObject>
|
||||||
|
#include <QSet>
|
||||||
|
|
||||||
|
class QGridLayout;
|
||||||
|
class QTimer;
|
||||||
|
|
||||||
|
class ColumnResizer: public QObject
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
ColumnResizer (QObject * parent = nullptr);
|
||||||
|
|
||||||
|
void addLayout (QGridLayout * layout);
|
||||||
|
|
||||||
|
virtual bool eventFilter (QObject * object, QEvent * event);
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
void update ();
|
||||||
|
|
||||||
|
private:
|
||||||
|
void scheduleUpdate ();
|
||||||
|
|
||||||
|
private:
|
||||||
|
QTimer * myTimer;
|
||||||
|
QSet<QGridLayout *> myLayouts;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -32,6 +32,7 @@
|
|||||||
#include <libtransmission/transmission.h>
|
#include <libtransmission/transmission.h>
|
||||||
#include <libtransmission/utils.h> // tr_getRatio ()
|
#include <libtransmission/utils.h> // tr_getRatio ()
|
||||||
|
|
||||||
|
#include "column-resizer.h"
|
||||||
#include "details.h"
|
#include "details.h"
|
||||||
#include "file-tree.h"
|
#include "file-tree.h"
|
||||||
#include "formatter.h"
|
#include "formatter.h"
|
||||||
@@ -959,6 +960,11 @@ Details::initInfoTab ()
|
|||||||
{
|
{
|
||||||
const int h = QFontMetrics (ui.commentBrowser->font ()).lineSpacing () * 4;
|
const int h = QFontMetrics (ui.commentBrowser->font ()).lineSpacing () * 4;
|
||||||
ui.commentBrowser->setFixedHeight (h);
|
ui.commentBrowser->setFixedHeight (h);
|
||||||
|
|
||||||
|
ColumnResizer * cr (new ColumnResizer (this));
|
||||||
|
cr->addLayout (ui.activitySectionLayout);
|
||||||
|
cr->addLayout (ui.detailsSectionLayout);
|
||||||
|
cr->update ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/***
|
/***
|
||||||
@@ -1177,6 +1183,13 @@ Details::initOptionsTab ()
|
|||||||
ui.idleCombo->addItem (tr ("Seed regardless of activity"), TR_IDLELIMIT_UNLIMITED);
|
ui.idleCombo->addItem (tr ("Seed regardless of activity"), TR_IDLELIMIT_UNLIMITED);
|
||||||
ui.idleCombo->addItem (tr ("Stop seeding if idle for:"), TR_IDLELIMIT_SINGLE);
|
ui.idleCombo->addItem (tr ("Stop seeding if idle for:"), TR_IDLELIMIT_SINGLE);
|
||||||
|
|
||||||
|
ColumnResizer * cr (new ColumnResizer (this));
|
||||||
|
cr->addLayout (ui.speedSectionLayout);
|
||||||
|
cr->addLayout (ui.seedingLimitsSectionRatioLayout);
|
||||||
|
cr->addLayout (ui.seedingLimitsSectionIdleLayout);
|
||||||
|
cr->addLayout (ui.peerConnectionsSectionLayout);
|
||||||
|
cr->update ();
|
||||||
|
|
||||||
connect (ui.sessionLimitCheck, SIGNAL (clicked (bool)), SLOT (onHonorsSessionLimitsToggled (bool)));
|
connect (ui.sessionLimitCheck, SIGNAL (clicked (bool)), SLOT (onHonorsSessionLimitsToggled (bool)));
|
||||||
connect (ui.singleDownCheck, SIGNAL (clicked (bool)), SLOT (onDownloadLimitedToggled (bool)));
|
connect (ui.singleDownCheck, SIGNAL (clicked (bool)), SLOT (onDownloadLimitedToggled (bool)));
|
||||||
connect (ui.singleDownSpin, SIGNAL (editingFinished ()), SLOT (onSpinBoxEditingFinished ()));
|
connect (ui.singleDownSpin, SIGNAL (editingFinished ()), SLOT (onSpinBoxEditingFinished ()));
|
||||||
|
|||||||
1190
qt/details.ui
1190
qt/details.ui
File diff suppressed because it is too large
Load Diff
@@ -17,6 +17,7 @@
|
|||||||
#include <libtransmission/makemeta.h>
|
#include <libtransmission/makemeta.h>
|
||||||
#include <libtransmission/utils.h>
|
#include <libtransmission/utils.h>
|
||||||
|
|
||||||
|
#include "column-resizer.h"
|
||||||
#include "formatter.h"
|
#include "formatter.h"
|
||||||
#include "make-dialog.h"
|
#include "make-dialog.h"
|
||||||
#include "session.h"
|
#include "session.h"
|
||||||
@@ -220,14 +221,19 @@ MakeDialog::MakeDialog (Session& session, QWidget * parent):
|
|||||||
{
|
{
|
||||||
ui.setupUi (this);
|
ui.setupUi (this);
|
||||||
|
|
||||||
resize (minimumSizeHint ());
|
|
||||||
|
|
||||||
ui.destinationButton->setMode (TrPathButton::DirectoryMode);
|
ui.destinationButton->setMode (TrPathButton::DirectoryMode);
|
||||||
ui.destinationButton->setPath (QDir::homePath ());
|
ui.destinationButton->setPath (QDir::homePath ());
|
||||||
|
|
||||||
ui.sourceFolderButton->setMode (TrPathButton::DirectoryMode);
|
ui.sourceFolderButton->setMode (TrPathButton::DirectoryMode);
|
||||||
ui.sourceFileButton->setMode (TrPathButton::FileMode);
|
ui.sourceFileButton->setMode (TrPathButton::FileMode);
|
||||||
|
|
||||||
|
ColumnResizer * cr (new ColumnResizer (this));
|
||||||
|
cr->addLayout (ui.filesSectionLayout);
|
||||||
|
cr->addLayout (ui.propertiesSectionLayout);
|
||||||
|
cr->update ();
|
||||||
|
|
||||||
|
resize (minimumSizeHint ());
|
||||||
|
|
||||||
connect (ui.sourceFolderRadio, SIGNAL (toggled (bool)), this, SLOT (onSourceChanged ()));
|
connect (ui.sourceFolderRadio, SIGNAL (toggled (bool)), this, SLOT (onSourceChanged ()));
|
||||||
connect (ui.sourceFolderButton, SIGNAL (pathChanged (QString)), this, SLOT (onSourceChanged ()));
|
connect (ui.sourceFolderButton, SIGNAL (pathChanged (QString)), this, SLOT (onSourceChanged ()));
|
||||||
connect (ui.sourceFileRadio, SIGNAL (toggled (bool)), this, SLOT (onSourceChanged ()));
|
connect (ui.sourceFileRadio, SIGNAL (toggled (bool)), this, SLOT (onSourceChanged ()));
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>566</width>
|
<width>566</width>
|
||||||
<height>417</height>
|
<height>426</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="acceptDrops">
|
<property name="acceptDrops">
|
||||||
@@ -16,161 +16,157 @@
|
|||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>New Torrent</string>
|
<string>New Torrent</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
<layout class="QVBoxLayout" name="dialogLayout">
|
||||||
<string notr="true">[tr-style~="form-section"]
|
<item>
|
||||||
{
|
|
||||||
font-weight: bold;
|
|
||||||
margin-top: 12px;
|
|
||||||
margin-bottom: 1px;
|
|
||||||
}
|
|
||||||
[tr-style~="form-section"][tr-style~="first"]
|
|
||||||
{
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
[tr-style~="form-label"]
|
|
||||||
{
|
|
||||||
margin-left: 18px;
|
|
||||||
}</string>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="dialogLayout">
|
|
||||||
<item row="0" column="0" colspan="2">
|
|
||||||
<widget class="QLabel" name="filesSectionLabel">
|
<widget class="QLabel" name="filesSectionLabel">
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">font-weight:bold</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Files</string>
|
<string>Files</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="tr-style" stdset="0">
|
|
||||||
<string notr="true">form-section first</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item>
|
||||||
<widget class="QLabel" name="destinationLabel">
|
<layout class="QGridLayout" name="filesSectionLayout" columnstretch="0,1">
|
||||||
<property name="text">
|
<property name="leftMargin">
|
||||||
<string>Sa&ve to:</string>
|
<number>18</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy">
|
<item row="0" column="0">
|
||||||
<cstring>destinationButton</cstring>
|
<widget class="QLabel" name="destinationLabel">
|
||||||
</property>
|
<property name="text">
|
||||||
<property name="tr-style" stdset="0">
|
<string>Sa&ve to:</string>
|
||||||
<string notr="true">form-label</string>
|
</property>
|
||||||
</property>
|
<property name="buddy">
|
||||||
</widget>
|
<cstring>destinationButton</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="TrPathButton" name="destinationButton"/>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QRadioButton" name="sourceFolderRadio">
|
||||||
|
<property name="text">
|
||||||
|
<string>Source f&older:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="TrPathButton" name="sourceFolderButton">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QRadioButton" name="sourceFileRadio">
|
||||||
|
<property name="text">
|
||||||
|
<string>Source &file:</string>
|
||||||
|
</property>
|
||||||
|
<property name="checked">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="TrPathButton" name="sourceFileButton"/>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="1">
|
||||||
|
<widget class="QLabel" name="sourceSizeLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">...</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item>
|
||||||
<widget class="TrPathButton" name="destinationButton"/>
|
<spacer name="propertiesSectionSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeType">
|
||||||
|
<enum>QSizePolicy::Fixed</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>1</width>
|
||||||
|
<height>10</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item>
|
||||||
<widget class="QRadioButton" name="sourceFolderRadio">
|
|
||||||
<property name="text">
|
|
||||||
<string>Source f&older:</string>
|
|
||||||
</property>
|
|
||||||
<property name="tr-style" stdset="0">
|
|
||||||
<string notr="true">form-label</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="1">
|
|
||||||
<widget class="TrPathButton" name="sourceFolderButton">
|
|
||||||
<property name="enabled">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="0">
|
|
||||||
<widget class="QRadioButton" name="sourceFileRadio">
|
|
||||||
<property name="text">
|
|
||||||
<string>Source &file:</string>
|
|
||||||
</property>
|
|
||||||
<property name="checked">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<property name="tr-style" stdset="0">
|
|
||||||
<string notr="true">form-label</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="1">
|
|
||||||
<widget class="TrPathButton" name="sourceFileButton"/>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="1">
|
|
||||||
<widget class="QLabel" name="sourceSizeLabel">
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">...</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="0" colspan="2">
|
|
||||||
<widget class="QLabel" name="propertiesSectionLabel">
|
<widget class="QLabel" name="propertiesSectionLabel">
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">font-weight:bold</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Properties</string>
|
<string>Properties</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="tr-style" stdset="0">
|
|
||||||
<string notr="true">form-section</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="6" column="0">
|
<item>
|
||||||
<widget class="QLabel" name="trackersLabel">
|
<layout class="QGridLayout" name="propertiesSectionLayout" columnstretch="0,1">
|
||||||
<property name="text">
|
<property name="leftMargin">
|
||||||
<string>&Trackers:</string>
|
<number>18</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="alignment">
|
<item row="0" column="0">
|
||||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
<widget class="QLabel" name="trackersLabel">
|
||||||
</property>
|
<property name="text">
|
||||||
<property name="buddy">
|
<string>&Trackers:</string>
|
||||||
<cstring>trackersEdit</cstring>
|
</property>
|
||||||
</property>
|
<property name="alignment">
|
||||||
<property name="tr-style" stdset="0">
|
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
||||||
<string notr="true">form-label</string>
|
</property>
|
||||||
</property>
|
<property name="buddy">
|
||||||
</widget>
|
<cstring>trackersEdit</cstring>
|
||||||
</item>
|
</property>
|
||||||
<item row="6" column="1">
|
</widget>
|
||||||
<widget class="QPlainTextEdit" name="trackersEdit">
|
</item>
|
||||||
<property name="tabChangesFocus">
|
<item row="0" column="1">
|
||||||
<bool>true</bool>
|
<widget class="QPlainTextEdit" name="trackersEdit">
|
||||||
</property>
|
<property name="tabChangesFocus">
|
||||||
<property name="lineWrapMode">
|
<bool>true</bool>
|
||||||
<enum>QPlainTextEdit::NoWrap</enum>
|
</property>
|
||||||
</property>
|
<property name="lineWrapMode">
|
||||||
</widget>
|
<enum>QPlainTextEdit::NoWrap</enum>
|
||||||
</item>
|
</property>
|
||||||
<item row="7" column="1">
|
</widget>
|
||||||
<widget class="QLabel" name="trackersDescriptionLabel">
|
</item>
|
||||||
<property name="text">
|
<item row="1" column="1">
|
||||||
<string>To add a backup URL, add it on the line after the primary URL.
|
<widget class="QLabel" name="trackersDescriptionLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>To add a backup URL, add it on the line after the primary URL.
|
||||||
To add another primary URL, add it after a blank line.</string>
|
To add another primary URL, add it after a blank line.</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QCheckBox" name="commentCheck">
|
||||||
|
<property name="text">
|
||||||
|
<string>Co&mment:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="QLineEdit" name="commentEdit">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0" colspan="2">
|
||||||
|
<widget class="QCheckBox" name="privateCheck">
|
||||||
|
<property name="text">
|
||||||
|
<string>&Private torrent</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="8" column="0">
|
<item>
|
||||||
<widget class="QCheckBox" name="commentCheck">
|
|
||||||
<property name="text">
|
|
||||||
<string>Co&mment:</string>
|
|
||||||
</property>
|
|
||||||
<property name="tr-style" stdset="0">
|
|
||||||
<string notr="true">form-label</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="8" column="1">
|
|
||||||
<widget class="QLineEdit" name="commentEdit">
|
|
||||||
<property name="enabled">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="9" column="0" colspan="2">
|
|
||||||
<widget class="QCheckBox" name="privateCheck">
|
|
||||||
<property name="text">
|
|
||||||
<string>&Private torrent</string>
|
|
||||||
</property>
|
|
||||||
<property name="tr-style" stdset="0">
|
|
||||||
<string notr="true">form-label</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="10" column="0" colspan="2">
|
|
||||||
<widget class="QDialogButtonBox" name="dialogButtons">
|
<widget class="QDialogButtonBox" name="dialogButtons">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ win32|macx:RESOURCES += icons/Faenza/Faenza.qrc
|
|||||||
SOURCES += about.cc \
|
SOURCES += about.cc \
|
||||||
add-data.cc \
|
add-data.cc \
|
||||||
app.cc \
|
app.cc \
|
||||||
|
column-resizer.cc \
|
||||||
dbus-adaptor.cc \
|
dbus-adaptor.cc \
|
||||||
details.cc \
|
details.cc \
|
||||||
favicon.cc \
|
favicon.cc \
|
||||||
|
|||||||
102
qt/relocate.ui
102
qt/relocate.ui
@@ -6,84 +6,62 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>339</width>
|
<width>333</width>
|
||||||
<height>151</height>
|
<height>155</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Set Torrent Location</string>
|
<string>Set Torrent Location</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
<layout class="QVBoxLayout" name="dialogLayout">
|
||||||
<string notr="true">[tr-style~="form-section"]
|
|
||||||
{
|
|
||||||
font-weight: bold;
|
|
||||||
margin-top: 12px;
|
|
||||||
margin-bottom: 1px;
|
|
||||||
}
|
|
||||||
[tr-style~="form-section"][tr-style~="first"]
|
|
||||||
{
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
[tr-style~="form-label"]
|
|
||||||
{
|
|
||||||
margin-left: 18px;
|
|
||||||
}
|
|
||||||
#newLocationStack
|
|
||||||
{
|
|
||||||
min-width: 15em;
|
|
||||||
}</string>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="dialogLayout">
|
|
||||||
<property name="sizeConstraint">
|
<property name="sizeConstraint">
|
||||||
<enum>QLayout::SetFixedSize</enum>
|
<enum>QLayout::SetFixedSize</enum>
|
||||||
</property>
|
</property>
|
||||||
<item row="0" column="0" colspan="2">
|
<item>
|
||||||
<widget class="QLabel" name="setLocationSectionLabel">
|
<widget class="QLabel" name="setLocationSectionLabel">
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">font-weight:bold</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Set Location</string>
|
<string>Set Location</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="tr-style" stdset="0">
|
|
||||||
<string notr="true">form-section first</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item>
|
||||||
<widget class="QLabel" name="newLocationLabel">
|
<layout class="QGridLayout" name="setLocationSectionLayout" columnstretch="0,1">
|
||||||
<property name="text">
|
<property name="leftMargin">
|
||||||
<string>New &location:</string>
|
<number>18</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="tr-style" stdset="0">
|
<item row="0" column="0">
|
||||||
<string notr="true">form-label</string>
|
<widget class="QLabel" name="newLocationLabel">
|
||||||
</property>
|
<property name="text">
|
||||||
</widget>
|
<string>New &location:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QStackedWidget" name="newLocationStack">
|
||||||
|
<widget class="TrPathButton" name="newLocationButton"/>
|
||||||
|
<widget class="QLineEdit" name="newLocationEdit"/>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0" colspan="2">
|
||||||
|
<widget class="QRadioButton" name="moveDataRadio">
|
||||||
|
<property name="text">
|
||||||
|
<string>&Move from the current folder</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0" colspan="2">
|
||||||
|
<widget class="QRadioButton" name="findDataRadio">
|
||||||
|
<property name="text">
|
||||||
|
<string>Local data is &already there</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item>
|
||||||
<widget class="QStackedWidget" name="newLocationStack">
|
|
||||||
<widget class="TrPathButton" name="newLocationButton"/>
|
|
||||||
<widget class="QLineEdit" name="newLocationEdit"/>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0" colspan="2">
|
|
||||||
<widget class="QRadioButton" name="moveDataRadio">
|
|
||||||
<property name="text">
|
|
||||||
<string>&Move from the current folder</string>
|
|
||||||
</property>
|
|
||||||
<property name="tr-style" stdset="0">
|
|
||||||
<string notr="true">form-label</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="0" colspan="2">
|
|
||||||
<widget class="QRadioButton" name="findDataRadio">
|
|
||||||
<property name="text">
|
|
||||||
<string>Local data is &already there</string>
|
|
||||||
</property>
|
|
||||||
<property name="tr-style" stdset="0">
|
|
||||||
<string notr="true">form-label</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="0" colspan="2">
|
|
||||||
<widget class="QDialogButtonBox" name="dialogButtons">
|
<widget class="QDialogButtonBox" name="dialogButtons">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
|
|||||||
@@ -6,149 +6,119 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>248</width>
|
<width>250</width>
|
||||||
<height>263</height>
|
<height>265</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Change Session</string>
|
<string>Change Session</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
<layout class="QVBoxLayout" name="dialogLayout">
|
||||||
<string notr="true">[tr-style~="form-section"]
|
|
||||||
{
|
|
||||||
font-weight: bold;
|
|
||||||
margin-top: 12px;
|
|
||||||
margin-bottom: 1px;
|
|
||||||
}
|
|
||||||
[tr-style~="form-section"][tr-style~="first"]
|
|
||||||
{
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
[tr-style~="form-label"]
|
|
||||||
{
|
|
||||||
margin-left: 18px;
|
|
||||||
}</string>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="dialogLayout">
|
|
||||||
<property name="sizeConstraint">
|
<property name="sizeConstraint">
|
||||||
<enum>QLayout::SetFixedSize</enum>
|
<enum>QLayout::SetFixedSize</enum>
|
||||||
</property>
|
</property>
|
||||||
<item row="0" column="0" colspan="2">
|
<item>
|
||||||
<widget class="QLabel" name="sourceSectionLabel">
|
<widget class="QLabel" name="sourceSectionLabel">
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">font-weight:bold</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Source</string>
|
<string>Source</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="tr-style" stdset="0">
|
|
||||||
<string notr="true">form-section first</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0" colspan="2">
|
<item>
|
||||||
<widget class="QRadioButton" name="localSessionRadio">
|
<layout class="QGridLayout" name="sourceSectionLayout" columnstretch="0,1">
|
||||||
<property name="text">
|
<property name="leftMargin">
|
||||||
<string>Start &Local Session</string>
|
<number>18</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="tr-style" stdset="0">
|
<item row="0" column="0" colspan="2">
|
||||||
<string notr="true">form-label</string>
|
<widget class="QRadioButton" name="localSessionRadio">
|
||||||
</property>
|
<property name="text">
|
||||||
</widget>
|
<string>Start &Local Session</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0" colspan="2">
|
||||||
|
<widget class="QRadioButton" name="remoteSessionRadio">
|
||||||
|
<property name="text">
|
||||||
|
<string>Connect to &Remote Session</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QLabel" name="hostLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>&Host:</string>
|
||||||
|
</property>
|
||||||
|
<property name="buddy">
|
||||||
|
<cstring>hostEdit</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="QLineEdit" name="hostEdit"/>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
|
<widget class="QLabel" name="portLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>&Port:</string>
|
||||||
|
</property>
|
||||||
|
<property name="buddy">
|
||||||
|
<cstring>portSpin</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="1">
|
||||||
|
<widget class="QSpinBox" name="portSpin">
|
||||||
|
<property name="minimum">
|
||||||
|
<number>1</number>
|
||||||
|
</property>
|
||||||
|
<property name="maximum">
|
||||||
|
<number>65535</number>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="0" colspan="2">
|
||||||
|
<widget class="QCheckBox" name="authCheck">
|
||||||
|
<property name="text">
|
||||||
|
<string>&Authentication required</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="0">
|
||||||
|
<widget class="QLabel" name="usernameLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>&Username:</string>
|
||||||
|
</property>
|
||||||
|
<property name="buddy">
|
||||||
|
<cstring>usernameEdit</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="1">
|
||||||
|
<widget class="QLineEdit" name="usernameEdit"/>
|
||||||
|
</item>
|
||||||
|
<item row="6" column="0">
|
||||||
|
<widget class="QLabel" name="passwordLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Pass&word:</string>
|
||||||
|
</property>
|
||||||
|
<property name="buddy">
|
||||||
|
<cstring>passwordEdit</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="6" column="1">
|
||||||
|
<widget class="QLineEdit" name="passwordEdit">
|
||||||
|
<property name="echoMode">
|
||||||
|
<enum>QLineEdit::Password</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0" colspan="2">
|
<item>
|
||||||
<widget class="QRadioButton" name="remoteSessionRadio">
|
|
||||||
<property name="text">
|
|
||||||
<string>Connect to &Remote Session</string>
|
|
||||||
</property>
|
|
||||||
<property name="tr-style" stdset="0">
|
|
||||||
<string notr="true">form-label</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="0">
|
|
||||||
<widget class="QLabel" name="hostLabel">
|
|
||||||
<property name="text">
|
|
||||||
<string>&Host:</string>
|
|
||||||
</property>
|
|
||||||
<property name="buddy">
|
|
||||||
<cstring>hostEdit</cstring>
|
|
||||||
</property>
|
|
||||||
<property name="tr-style" stdset="0">
|
|
||||||
<string notr="true">form-label</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="1">
|
|
||||||
<widget class="QLineEdit" name="hostEdit"/>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="0">
|
|
||||||
<widget class="QLabel" name="portLabel">
|
|
||||||
<property name="text">
|
|
||||||
<string>&Port:</string>
|
|
||||||
</property>
|
|
||||||
<property name="buddy">
|
|
||||||
<cstring>portSpin</cstring>
|
|
||||||
</property>
|
|
||||||
<property name="tr-style" stdset="0">
|
|
||||||
<string notr="true">form-label</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="1">
|
|
||||||
<widget class="QSpinBox" name="portSpin">
|
|
||||||
<property name="minimum">
|
|
||||||
<number>1</number>
|
|
||||||
</property>
|
|
||||||
<property name="maximum">
|
|
||||||
<number>65535</number>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="0" colspan="2">
|
|
||||||
<widget class="QCheckBox" name="authCheck">
|
|
||||||
<property name="text">
|
|
||||||
<string>&Authentication required</string>
|
|
||||||
</property>
|
|
||||||
<property name="tr-style" stdset="0">
|
|
||||||
<string notr="true">form-label</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="6" column="0">
|
|
||||||
<widget class="QLabel" name="usernameLabel">
|
|
||||||
<property name="text">
|
|
||||||
<string>&Username:</string>
|
|
||||||
</property>
|
|
||||||
<property name="buddy">
|
|
||||||
<cstring>usernameEdit</cstring>
|
|
||||||
</property>
|
|
||||||
<property name="tr-style" stdset="0">
|
|
||||||
<string notr="true">form-label</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="6" column="1">
|
|
||||||
<widget class="QLineEdit" name="usernameEdit"/>
|
|
||||||
</item>
|
|
||||||
<item row="7" column="0">
|
|
||||||
<widget class="QLabel" name="passwordLabel">
|
|
||||||
<property name="text">
|
|
||||||
<string>Pass&word:</string>
|
|
||||||
</property>
|
|
||||||
<property name="buddy">
|
|
||||||
<cstring>passwordEdit</cstring>
|
|
||||||
</property>
|
|
||||||
<property name="tr-style" stdset="0">
|
|
||||||
<string notr="true">form-label</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="7" column="1">
|
|
||||||
<widget class="QLineEdit" name="passwordEdit">
|
|
||||||
<property name="echoMode">
|
|
||||||
<enum>QLineEdit::Password</enum>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="8" column="0" colspan="2">
|
|
||||||
<widget class="QDialogButtonBox" name="dialogButtons">
|
<widget class="QDialogButtonBox" name="dialogButtons">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
|
#include "column-resizer.h"
|
||||||
#include "formatter.h"
|
#include "formatter.h"
|
||||||
#include "session.h"
|
#include "session.h"
|
||||||
#include "stats-dialog.h"
|
#include "stats-dialog.h"
|
||||||
@@ -25,6 +26,11 @@ StatsDialog::StatsDialog (Session& session, QWidget * parent):
|
|||||||
{
|
{
|
||||||
ui.setupUi (this);
|
ui.setupUi (this);
|
||||||
|
|
||||||
|
ColumnResizer * cr (new ColumnResizer (this));
|
||||||
|
cr->addLayout (ui.currentSessionSectionLayout);
|
||||||
|
cr->addLayout (ui.totalSectionLayout);
|
||||||
|
cr->update ();
|
||||||
|
|
||||||
myTimer->setSingleShot (false);
|
myTimer->setSingleShot (false);
|
||||||
connect (myTimer, SIGNAL (timeout ()), &mySession, SLOT (refreshSessionStats ()));
|
connect (myTimer, SIGNAL (timeout ()), &mySession, SLOT (refreshSessionStats ()));
|
||||||
|
|
||||||
|
|||||||
@@ -6,165 +6,187 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>139</width>
|
<width>138</width>
|
||||||
<height>303</height>
|
<height>315</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Statistics</string>
|
<string>Statistics</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
<layout class="QVBoxLayout" name="dialogLayout">
|
||||||
<string notr="true">[tr-style~="form-section"]
|
|
||||||
{
|
|
||||||
font-weight: bold;
|
|
||||||
margin-top: 12px;
|
|
||||||
margin-bottom: 1px;
|
|
||||||
}
|
|
||||||
[tr-style~="form-section"][tr-style~="first"]
|
|
||||||
{
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
[tr-style~="form-label"]
|
|
||||||
{
|
|
||||||
margin-left: 18px;
|
|
||||||
}</string>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="dialogLayout">
|
|
||||||
<property name="sizeConstraint">
|
<property name="sizeConstraint">
|
||||||
<enum>QLayout::SetFixedSize</enum>
|
<enum>QLayout::SetFixedSize</enum>
|
||||||
</property>
|
</property>
|
||||||
<item row="0" column="0" colspan="2">
|
<item>
|
||||||
<widget class="QLabel" name="currentSessionSectionLabel">
|
<widget class="QLabel" name="currentSessionSectionLabel">
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">font-weight:bold</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Current Session</string>
|
<string>Current Session</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="tr-style" stdset="0">
|
|
||||||
<string notr="true">form-section first</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item>
|
||||||
<widget class="QLabel" name="currentUploadedLabel">
|
<layout class="QGridLayout" name="currentSessionSectionLayout" columnstretch="0,1">
|
||||||
<property name="text">
|
<property name="leftMargin">
|
||||||
<string>Uploaded:</string>
|
<number>18</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="tr-style" stdset="0">
|
<item row="0" column="0">
|
||||||
<string notr="true">form-label</string>
|
<widget class="QLabel" name="currentUploadedLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Uploaded:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QLabel" name="currentUploadedValueLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">...</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QLabel" name="currentDownloadedLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Downloaded:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="QLabel" name="currentDownloadedValueLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">...</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QLabel" name="currentRatioLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Ratio:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="QLabel" name="currentRatioValueLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">...</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
|
<widget class="QLabel" name="currentDurationLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Duration:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="1">
|
||||||
|
<widget class="QLabel" name="currentDurationValueLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">...</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="totalSectionSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
<property name="sizeType">
|
||||||
</item>
|
<enum>QSizePolicy::Fixed</enum>
|
||||||
<item row="1" column="1">
|
|
||||||
<widget class="QLabel" name="currentUploadedValueLabel"/>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0">
|
|
||||||
<widget class="QLabel" name="currentDownloadedLabel">
|
|
||||||
<property name="text">
|
|
||||||
<string>Downloaded:</string>
|
|
||||||
</property>
|
</property>
|
||||||
<property name="tr-style" stdset="0">
|
<property name="sizeHint" stdset="0">
|
||||||
<string notr="true">form-label</string>
|
<size>
|
||||||
|
<width>1</width>
|
||||||
|
<height>10</height>
|
||||||
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1">
|
<item>
|
||||||
<widget class="QLabel" name="currentDownloadedValueLabel"/>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="0">
|
|
||||||
<widget class="QLabel" name="currentRatioLabel">
|
|
||||||
<property name="text">
|
|
||||||
<string>Ratio:</string>
|
|
||||||
</property>
|
|
||||||
<property name="tr-style" stdset="0">
|
|
||||||
<string notr="true">form-label</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="1">
|
|
||||||
<widget class="QLabel" name="currentRatioValueLabel"/>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="0">
|
|
||||||
<widget class="QLabel" name="currentDurationLabel">
|
|
||||||
<property name="text">
|
|
||||||
<string>Duration:</string>
|
|
||||||
</property>
|
|
||||||
<property name="tr-style" stdset="0">
|
|
||||||
<string notr="true">form-label</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="1">
|
|
||||||
<widget class="QLabel" name="currentDurationValueLabel"/>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="0" colspan="2">
|
|
||||||
<widget class="QLabel" name="totalSectionLabel">
|
<widget class="QLabel" name="totalSectionLabel">
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">font-weight:bold</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Total</string>
|
<string>Total</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="tr-style" stdset="0">
|
|
||||||
<string notr="true">form-section</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="6" column="0">
|
<item>
|
||||||
<widget class="QLabel" name="startCountLabel">
|
<layout class="QGridLayout" name="totalSectionLayout" columnstretch="0,1">
|
||||||
<property name="tr-style" stdset="0">
|
<property name="leftMargin">
|
||||||
<string notr="true">form-label</string>
|
<number>18</number>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="startCountLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">...</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QLabel" name="totalUploadedLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Uploaded:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="QLabel" name="totalUploadedValueLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">...</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QLabel" name="totalDownloadedLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Downloaded:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="QLabel" name="totalDownloadedValueLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">...</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
|
<widget class="QLabel" name="totalRatioLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Ratio:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="1">
|
||||||
|
<widget class="QLabel" name="totalRatioValueLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">...</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="0">
|
||||||
|
<widget class="QLabel" name="totalDurationLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Duration:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="1">
|
||||||
|
<widget class="QLabel" name="totalDurationValueLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">...</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="7" column="0">
|
<item>
|
||||||
<widget class="QLabel" name="totalUploadedLabel">
|
|
||||||
<property name="text">
|
|
||||||
<string>Uploaded:</string>
|
|
||||||
</property>
|
|
||||||
<property name="tr-style" stdset="0">
|
|
||||||
<string notr="true">form-label</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="7" column="1">
|
|
||||||
<widget class="QLabel" name="totalUploadedValueLabel"/>
|
|
||||||
</item>
|
|
||||||
<item row="8" column="0">
|
|
||||||
<widget class="QLabel" name="totalDownloadedLabel">
|
|
||||||
<property name="text">
|
|
||||||
<string>Downloaded:</string>
|
|
||||||
</property>
|
|
||||||
<property name="tr-style" stdset="0">
|
|
||||||
<string notr="true">form-label</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="8" column="1">
|
|
||||||
<widget class="QLabel" name="totalDownloadedValueLabel"/>
|
|
||||||
</item>
|
|
||||||
<item row="9" column="0">
|
|
||||||
<widget class="QLabel" name="totalRatioLabel">
|
|
||||||
<property name="text">
|
|
||||||
<string>Ratio:</string>
|
|
||||||
</property>
|
|
||||||
<property name="tr-style" stdset="0">
|
|
||||||
<string notr="true">form-label</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="9" column="1">
|
|
||||||
<widget class="QLabel" name="totalRatioValueLabel"/>
|
|
||||||
</item>
|
|
||||||
<item row="10" column="0">
|
|
||||||
<widget class="QLabel" name="totalDurationLabel">
|
|
||||||
<property name="text">
|
|
||||||
<string>Duration:</string>
|
|
||||||
</property>
|
|
||||||
<property name="tr-style" stdset="0">
|
|
||||||
<string notr="true">form-label</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="10" column="1">
|
|
||||||
<widget class="QLabel" name="totalDurationValueLabel"/>
|
|
||||||
</item>
|
|
||||||
<item row="11" column="0" colspan="2">
|
|
||||||
<widget class="QDialogButtonBox" name="dialogButtons">
|
<widget class="QDialogButtonBox" name="dialogButtons">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
|
|||||||
Reference in New Issue
Block a user