Browse Source

Move options ui as a pointer member variable

adaptive-webui-19844
Chocobo1 9 years ago
parent
commit
97ee63fc78
  1. 10
      src/gui/options.ui
  2. 1111
      src/gui/options_imp.cpp
  3. 13
      src/gui/options_imp.h

10
src/gui/options.ui

@ -1,7 +1,7 @@ @@ -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 @@ @@ -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 @@ @@ -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">

1111
src/gui/options_imp.cpp

File diff suppressed because it is too large Load Diff

13
src/gui/options_imp.h

@ -31,9 +31,12 @@ @@ -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 @@ -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: @@ -164,6 +172,7 @@ private:
bool webUIAuthenticationOk();
private:
Ui::OptionsDialog *m_ui;
QButtonGroup choiceLanguage;
QAbstractButton *applyButton;
AdvancedSettings *advancedSettings;

Loading…
Cancel
Save