mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Create Options object only when necessary (to save memory)
This commit is contained in:
parent
79545f2e0f
commit
6d65ef067d
7 changed files with 78 additions and 48 deletions
|
@ -38,8 +38,9 @@ class options_imp : public QDialog, private Ui::Dialog{
|
|||
QStringList locales;
|
||||
|
||||
public:
|
||||
// Contructor
|
||||
// Contructor / Destructor
|
||||
options_imp(QWidget *parent=0);
|
||||
~options_imp();
|
||||
|
||||
// Methods
|
||||
void saveOptions();
|
||||
|
@ -106,7 +107,9 @@ class options_imp : public QDialog, private Ui::Dialog{
|
|||
void setLocale(QString locale);
|
||||
|
||||
signals:
|
||||
void status_changed(const QString&) const;
|
||||
void status_changed(const QString&, bool) const;
|
||||
void optionsApplied(const QString&, bool);
|
||||
void exitWithCancel();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue