mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-30 18:50:11 +08:00
Move options ui as a pointer member variable
This commit is contained in:
parent
05cbb35814
commit
97ee63fc78
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>Preferences</class>
|
||||
<widget class="QDialog" name="Preferences">
|
||||
<class>OptionsDialog</class>
|
||||
<widget class="QDialog" name="OptionsDialog">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
@ -1363,7 +1363,7 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>497</width>
|
||||
<width>457</width>
|
||||
<height>672</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -1836,8 +1836,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>510</width>
|
||||
<height>538</height>
|
||||
<width>388</width>
|
||||
<height>452</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_5">
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -31,9 +31,12 @@
|
||||
#ifndef OPTIONS_IMP_H
|
||||
#define OPTIONS_IMP_H
|
||||
|
||||
#include "ui_options.h"
|
||||
#include <QButtonGroup>
|
||||
#include <QDialog>
|
||||
|
||||
class QAbstractButton;
|
||||
class QCloseEvent;
|
||||
class QListWidgetItem;
|
||||
class AdvancedSettings;
|
||||
|
||||
// actions on double-click on torrents
|
||||
@ -44,7 +47,12 @@ enum DoubleClickAction
|
||||
NO_ACTION
|
||||
};
|
||||
|
||||
class options_imp: public QDialog, private Ui_Preferences
|
||||
namespace Ui
|
||||
{
|
||||
class OptionsDialog;
|
||||
}
|
||||
|
||||
class options_imp: public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
private:
|
||||
@ -164,6 +172,7 @@ private:
|
||||
bool webUIAuthenticationOk();
|
||||
|
||||
private:
|
||||
Ui::OptionsDialog *m_ui;
|
||||
QButtonGroup choiceLanguage;
|
||||
QAbstractButton *applyButton;
|
||||
AdvancedSettings *advancedSettings;
|
||||
|
Loading…
Reference in New Issue
Block a user