qBittorrent
PluginSourceDialog Class Referencefinal

#include <pluginsourcedialog.h>

Inheritance diagram for PluginSourceDialog:
Collaboration diagram for PluginSourceDialog:

Signals

void askForUrl ()
 
void askForLocalFile ()
 

Public Member Functions

 PluginSourceDialog (QWidget *parent=nullptr)
 
 ~PluginSourceDialog () override
 

Private Slots

void on_localButton_clicked ()
 
void on_urlButton_clicked ()
 

Private Attributes

Ui::PluginSourceDialog * m_ui
 
SettingValue< QSize > m_storeDialogSize
 

Detailed Description

Definition at line 40 of file pluginsourcedialog.h.

Constructor & Destructor Documentation

◆ PluginSourceDialog()

PluginSourceDialog::PluginSourceDialog ( QWidget *  parent = nullptr)
explicit

Definition at line 36 of file pluginsourcedialog.cpp.

37  : QDialog(parent)
38  , m_ui(new Ui::PluginSourceDialog)
40 {
41  m_ui->setupUi(this);
42  setAttribute(Qt::WA_DeleteOnClose);
43 
45  show();
46 }
SettingValue< QSize > m_storeDialogSize
Ui::PluginSourceDialog * m_ui
void resize(QWidget *widget, const QSize &newSize={})
Definition: utils.cpp:54
#define SETTINGS_KEY(name)

References m_storeDialogSize, m_ui, and Utils::Gui::resize().

Here is the call graph for this function:

◆ ~PluginSourceDialog()

PluginSourceDialog::~PluginSourceDialog ( )
override

Definition at line 48 of file pluginsourcedialog.cpp.

49 {
50  m_storeDialogSize = size();
51  delete m_ui;
52 }

References m_storeDialogSize, and m_ui.

Member Function Documentation

◆ askForLocalFile

void PluginSourceDialog::askForLocalFile ( )
signal

Referenced by PluginSelectDialog::on_installButton_clicked(), and on_localButton_clicked().

Here is the caller graph for this function:

◆ askForUrl

void PluginSourceDialog::askForUrl ( )
signal

Referenced by PluginSelectDialog::on_installButton_clicked(), and on_urlButton_clicked().

Here is the caller graph for this function:

◆ on_localButton_clicked

void PluginSourceDialog::on_localButton_clicked ( )
privateslot

Definition at line 54 of file pluginsourcedialog.cpp.

55 {
56  emit askForLocalFile();
57  close();
58 }

References askForLocalFile().

◆ on_urlButton_clicked

void PluginSourceDialog::on_urlButton_clicked ( )
privateslot

Definition at line 60 of file pluginsourcedialog.cpp.

61 {
62  emit askForUrl();
63  close();
64 }

References askForUrl().

Member Data Documentation

◆ m_storeDialogSize

SettingValue<QSize> PluginSourceDialog::m_storeDialogSize
private

Definition at line 59 of file pluginsourcedialog.h.

Referenced by PluginSourceDialog(), and ~PluginSourceDialog().

◆ m_ui

Ui::PluginSourceDialog* PluginSourceDialog::m_ui
private

Definition at line 58 of file pluginsourcedialog.h.

Referenced by PluginSourceDialog(), and ~PluginSourceDialog().


The documentation for this class was generated from the following files: