2010-01-31 18:11:15 +03:00
|
|
|
#ifndef ADVANCEDSETTINGS_H
|
|
|
|
#define ADVANCEDSETTINGS_H
|
|
|
|
|
|
|
|
#include <QTableWidget>
|
|
|
|
#include <QHeaderView>
|
|
|
|
#include <QSpinBox>
|
2011-02-05 18:44:48 +03:00
|
|
|
#include <QHostAddress>
|
2010-01-31 18:42:24 +03:00
|
|
|
#include <QCheckBox>
|
2011-02-05 18:44:48 +03:00
|
|
|
#include <QLineEdit>
|
2010-05-11 19:53:14 +04:00
|
|
|
#include <QComboBox>
|
|
|
|
#include <QNetworkInterface>
|
2010-06-07 12:32:41 +04:00
|
|
|
#include <libtorrent/version.hpp>
|
2010-01-31 18:11:15 +03:00
|
|
|
#include "preferences.h"
|
|
|
|
|
|
|
|
enum AdvSettingsCols {PROPERTY, VALUE};
|
2011-02-05 18:44:48 +03:00
|
|
|
enum AdvSettingsRows {DISK_CACHE, OUTGOING_PORT_MIN, OUTGOING_PORT_MAX, IGNORE_LIMIT_LAN, COUNT_OVERHEAD, RECHECK_COMPLETED, LIST_REFRESH, RESOLVE_COUNTRIES, RESOLVE_HOSTS, MAX_HALF_OPEN, SUPER_SEEDING, NETWORK_IFACE, NETWORK_ADDRESS, PROGRAM_NOTIFICATIONS, TRACKER_STATUS, TRACKER_PORT,
|
2010-12-21 20:52:49 +03:00
|
|
|
#if defined(Q_WS_WIN) || defined(Q_WS_MAC)
|
2010-12-21 20:41:11 +03:00
|
|
|
UPDATE_CHECK,
|
2011-01-01 16:05:28 +03:00
|
|
|
#endif
|
|
|
|
#if defined(Q_WS_X11) && (QT_VERSION >= QT_VERSION_CHECK(4,6,0))
|
|
|
|
USE_ICON_THEME,
|
2010-12-21 20:41:11 +03:00
|
|
|
#endif
|
2011-01-16 18:29:44 +03:00
|
|
|
CONFIRM_DELETE_TORRENT,
|
|
|
|
ROW_COUNT};
|
2010-01-31 18:11:15 +03:00
|
|
|
|
|
|
|
class AdvancedSettings: public QTableWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
private:
|
2011-03-12 21:57:11 +03:00
|
|
|
QSpinBox spin_cache, outgoing_ports_min, outgoing_ports_max, spin_list_refresh, spin_maxhalfopen, spin_tracker_port;
|
|
|
|
QCheckBox cb_ignore_limits_lan, cb_count_overhead, cb_recheck_completed, cb_resolve_countries, cb_resolve_hosts,
|
|
|
|
cb_super_seeding, cb_program_notifications, cb_tracker_status, cb_confirm_torrent_deletion;
|
|
|
|
QComboBox combo_iface;
|
2010-12-21 20:52:49 +03:00
|
|
|
#if defined(Q_WS_WIN) || defined(Q_WS_MAC)
|
2011-03-12 21:57:11 +03:00
|
|
|
QCheckBox cb_update_check;
|
2010-12-21 20:41:11 +03:00
|
|
|
#endif
|
2011-01-01 16:05:28 +03:00
|
|
|
#if defined(Q_WS_X11) && (QT_VERSION >= QT_VERSION_CHECK(4,6,0))
|
2011-03-12 21:57:11 +03:00
|
|
|
QCheckBox cb_use_icon_theme;
|
2011-01-01 16:05:28 +03:00
|
|
|
#endif
|
2011-03-12 21:57:11 +03:00
|
|
|
QLineEdit txt_network_address;
|
2010-01-31 18:11:15 +03:00
|
|
|
|
|
|
|
public:
|
|
|
|
AdvancedSettings(QWidget *parent=0): QTableWidget(parent) {
|
|
|
|
// Set visual appearance
|
2010-01-31 18:31:41 +03:00
|
|
|
setEditTriggers(QAbstractItemView::NoEditTriggers);
|
2010-01-31 19:43:19 +03:00
|
|
|
setAlternatingRowColors(true);
|
2010-01-31 18:11:15 +03:00
|
|
|
setColumnCount(2);
|
|
|
|
QStringList header;
|
|
|
|
header << tr("Property") << tr("Value");
|
|
|
|
setHorizontalHeaderLabels(header);
|
|
|
|
setColumnWidth(0, width()/2);
|
|
|
|
horizontalHeader()->setStretchLastSection(true);
|
2010-01-31 19:34:38 +03:00
|
|
|
verticalHeader()->setVisible(false);
|
2010-01-31 18:11:15 +03:00
|
|
|
setRowCount(ROW_COUNT);
|
|
|
|
// Load settings
|
|
|
|
loadAdvancedSettings();
|
|
|
|
}
|
|
|
|
|
|
|
|
~AdvancedSettings() {
|
|
|
|
}
|
|
|
|
|
2010-01-31 19:14:56 +03:00
|
|
|
public slots:
|
2010-01-31 18:11:15 +03:00
|
|
|
void saveAdvancedSettings() {
|
2010-11-16 23:34:31 +03:00
|
|
|
Preferences pref;
|
2010-01-31 18:27:54 +03:00
|
|
|
// Disk write cache
|
2011-03-12 21:57:11 +03:00
|
|
|
pref.setDiskCacheSize(spin_cache.value());
|
2010-01-31 18:27:54 +03:00
|
|
|
// Outgoing ports
|
2011-03-12 21:57:11 +03:00
|
|
|
pref.setOutgoingPortsMin(outgoing_ports_min.value());
|
|
|
|
pref.setOutgoingPortsMax(outgoing_ports_max.value());
|
2010-01-31 18:42:24 +03:00
|
|
|
// Ignore limits on LAN
|
2011-03-12 21:57:11 +03:00
|
|
|
pref.ignoreLimitsOnLAN(cb_ignore_limits_lan.isChecked());
|
2010-01-31 18:57:07 +03:00
|
|
|
// Include protocol overhead in transfer limits
|
2011-03-12 21:57:11 +03:00
|
|
|
pref.includeOverheadInLimits(cb_count_overhead.isChecked());
|
2010-01-31 19:14:56 +03:00
|
|
|
// Recheck torrents on completion
|
2011-03-12 21:57:11 +03:00
|
|
|
pref.recheckTorrentsOnCompletion(cb_recheck_completed.isChecked());
|
2010-01-31 19:25:04 +03:00
|
|
|
// Transfer list refresh interval
|
2011-03-12 21:57:11 +03:00
|
|
|
pref.setRefreshInterval(spin_list_refresh.value());
|
2010-01-31 19:43:19 +03:00
|
|
|
// Peer resolution
|
2011-03-12 21:57:11 +03:00
|
|
|
pref.resolvePeerCountries(cb_resolve_countries.isChecked());
|
|
|
|
pref.resolvePeerHostNames(cb_resolve_hosts.isChecked());
|
2010-03-25 22:16:43 +03:00
|
|
|
// Max Half-Open connections
|
2011-03-12 21:57:11 +03:00
|
|
|
pref.setMaxHalfOpenConnections(spin_maxhalfopen.value());
|
2010-06-07 12:32:41 +04:00
|
|
|
#if LIBTORRENT_VERSION_MINOR > 14
|
2010-03-25 22:31:48 +03:00
|
|
|
// Super seeding
|
2011-03-12 21:57:11 +03:00
|
|
|
pref.enableSuperSeeding(cb_super_seeding.isChecked());
|
2010-03-25 22:31:48 +03:00
|
|
|
#endif
|
2010-05-11 19:53:14 +04:00
|
|
|
// Network interface
|
2011-03-12 21:57:11 +03:00
|
|
|
if(combo_iface.currentIndex() == 0) {
|
2010-05-11 19:53:14 +04:00
|
|
|
// All interfaces (default)
|
2010-11-16 23:34:31 +03:00
|
|
|
pref.setNetworkInterface(QString::null);
|
2010-05-11 19:53:14 +04:00
|
|
|
} else {
|
2011-03-12 21:57:11 +03:00
|
|
|
pref.setNetworkInterface(combo_iface.currentText());
|
2010-05-11 19:53:14 +04:00
|
|
|
}
|
2011-02-05 18:44:48 +03:00
|
|
|
// Network address
|
2011-03-12 21:57:11 +03:00
|
|
|
QHostAddress addr(txt_network_address.text().trimmed());
|
2011-02-05 18:44:48 +03:00
|
|
|
if(addr.isNull())
|
|
|
|
pref.setNetworkAddress("");
|
|
|
|
else
|
|
|
|
pref.setNetworkAddress(addr.toString());
|
2010-07-22 13:39:51 +04:00
|
|
|
// Program notification
|
2011-03-12 21:57:11 +03:00
|
|
|
pref.useProgramNotification(cb_program_notifications.isChecked());
|
2010-10-16 01:55:56 +04:00
|
|
|
// Tracker
|
2011-03-12 21:57:11 +03:00
|
|
|
pref.setTrackerEnabled(cb_tracker_status.isChecked());
|
|
|
|
pref.setTrackerPort(spin_tracker_port.value());
|
2010-12-21 20:52:49 +03:00
|
|
|
#if defined(Q_WS_WIN) || defined(Q_WS_MAC)
|
2011-03-12 21:57:11 +03:00
|
|
|
pref.setUpdateCheckEnabled(cb_update_check.isChecked());
|
2011-01-01 16:05:28 +03:00
|
|
|
#endif
|
|
|
|
// Icon theme
|
|
|
|
#if defined(Q_WS_X11) && (QT_VERSION >= QT_VERSION_CHECK(4,6,0))
|
2011-03-12 21:57:11 +03:00
|
|
|
pref.useSystemIconTheme(cb_use_icon_theme.isChecked());
|
2010-12-21 20:41:11 +03:00
|
|
|
#endif
|
2011-03-12 21:57:11 +03:00
|
|
|
pref.setConfirmTorrentDeletion(cb_confirm_torrent_deletion.isChecked());
|
2010-01-31 18:11:15 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
protected slots:
|
|
|
|
void loadAdvancedSettings() {
|
2010-11-16 23:34:31 +03:00
|
|
|
const Preferences pref;
|
2010-01-31 18:11:15 +03:00
|
|
|
// Disk write cache
|
2010-01-31 19:34:38 +03:00
|
|
|
setItem(DISK_CACHE, PROPERTY, new QTableWidgetItem(tr("Disk write cache size")));
|
2011-03-12 21:57:11 +03:00
|
|
|
connect(&spin_cache, SIGNAL(valueChanged(int)), this, SLOT(emitSettingsChanged()));
|
|
|
|
spin_cache.setMinimum(1);
|
|
|
|
spin_cache.setMaximum(200);
|
|
|
|
spin_cache.setValue(pref.diskCacheSize());
|
|
|
|
spin_cache.setSuffix(tr(" MiB"));
|
|
|
|
setCellWidget(DISK_CACHE, VALUE, &spin_cache);
|
2010-01-31 18:27:54 +03:00
|
|
|
// Outgoing port Min
|
2010-01-31 19:34:38 +03:00
|
|
|
setItem(OUTGOING_PORT_MIN, PROPERTY, new QTableWidgetItem(tr("Outgoing ports (Min) [0: Disabled]")));
|
2011-03-12 21:57:11 +03:00
|
|
|
connect(&outgoing_ports_min, SIGNAL(valueChanged(int)), this, SLOT(emitSettingsChanged()));
|
|
|
|
outgoing_ports_min.setMinimum(0);
|
|
|
|
outgoing_ports_min.setMaximum(65535);
|
|
|
|
outgoing_ports_min.setValue(pref.outgoingPortsMin());
|
|
|
|
setCellWidget(OUTGOING_PORT_MIN, VALUE, &outgoing_ports_min);
|
2010-01-31 18:27:54 +03:00
|
|
|
// Outgoing port Min
|
2010-01-31 19:34:38 +03:00
|
|
|
setItem(OUTGOING_PORT_MAX, PROPERTY, new QTableWidgetItem(tr("Outgoing ports (Max) [0: Disabled]")));
|
2011-03-12 21:57:11 +03:00
|
|
|
connect(&outgoing_ports_max, SIGNAL(valueChanged(int)), this, SLOT(emitSettingsChanged()));
|
|
|
|
outgoing_ports_max.setMinimum(0);
|
|
|
|
outgoing_ports_max.setMaximum(65535);
|
|
|
|
outgoing_ports_max.setValue(pref.outgoingPortsMax());
|
|
|
|
setCellWidget(OUTGOING_PORT_MAX, VALUE, &outgoing_ports_max);
|
2010-01-31 18:42:24 +03:00
|
|
|
// Ignore transfer limits on local network
|
|
|
|
setItem(IGNORE_LIMIT_LAN, PROPERTY, new QTableWidgetItem(tr("Ignore transfer limits on local network")));
|
2011-03-12 21:57:11 +03:00
|
|
|
connect(&cb_ignore_limits_lan, SIGNAL(toggled(bool)), this, SLOT(emitSettingsChanged()));
|
|
|
|
cb_ignore_limits_lan.setChecked(pref.ignoreLimitsOnLAN());
|
|
|
|
setCellWidget(IGNORE_LIMIT_LAN, VALUE, &cb_ignore_limits_lan);
|
2010-01-31 18:57:07 +03:00
|
|
|
// Consider protocol overhead in transfer limits
|
|
|
|
setItem(COUNT_OVERHEAD, PROPERTY, new QTableWidgetItem(tr("Include TCP/IP overhead in transfer limits")));
|
2011-03-12 21:57:11 +03:00
|
|
|
connect(&cb_count_overhead, SIGNAL(toggled(bool)), this, SLOT(emitSettingsChanged()));
|
|
|
|
cb_count_overhead.setChecked(pref.includeOverheadInLimits());
|
|
|
|
setCellWidget(COUNT_OVERHEAD, VALUE, &cb_count_overhead);
|
2010-01-31 19:14:56 +03:00
|
|
|
// Recheck completed torrents
|
|
|
|
setItem(RECHECK_COMPLETED, PROPERTY, new QTableWidgetItem(tr("Recheck torrents on completion")));
|
2011-03-12 21:57:11 +03:00
|
|
|
connect(&cb_recheck_completed, SIGNAL(toggled(bool)), this, SLOT(emitSettingsChanged()));
|
|
|
|
cb_recheck_completed.setChecked(pref.recheckTorrentsOnCompletion());
|
|
|
|
setCellWidget(RECHECK_COMPLETED, VALUE, &cb_recheck_completed);
|
2010-01-31 19:25:04 +03:00
|
|
|
// Transfer list refresh interval
|
2010-01-31 19:34:38 +03:00
|
|
|
setItem(LIST_REFRESH, PROPERTY, new QTableWidgetItem(tr("Transfer list refresh interval")));
|
2011-03-12 21:57:11 +03:00
|
|
|
connect(&spin_list_refresh, SIGNAL(valueChanged(int)), this, SLOT(emitSettingsChanged()));
|
|
|
|
spin_list_refresh.setMinimum(30);
|
|
|
|
spin_list_refresh.setMaximum(99999);
|
|
|
|
spin_list_refresh.setValue(pref.getRefreshInterval());
|
|
|
|
spin_list_refresh.setSuffix(tr(" ms", " milliseconds"));
|
|
|
|
setCellWidget(LIST_REFRESH, VALUE, &spin_list_refresh);
|
2010-01-31 19:43:19 +03:00
|
|
|
// Resolve Peer countries
|
|
|
|
setItem(RESOLVE_COUNTRIES, PROPERTY, new QTableWidgetItem(tr("Resolve peer countries (GeoIP)")));
|
2011-03-12 21:57:11 +03:00
|
|
|
connect(&cb_resolve_countries, SIGNAL(toggled(bool)), this, SLOT(emitSettingsChanged()));
|
|
|
|
cb_resolve_countries.setChecked(pref.resolvePeerCountries());
|
|
|
|
setCellWidget(RESOLVE_COUNTRIES, VALUE, &cb_resolve_countries);
|
2010-01-31 19:43:19 +03:00
|
|
|
// Resolve peer hosts
|
|
|
|
setItem(RESOLVE_HOSTS, PROPERTY, new QTableWidgetItem(tr("Resolve peer host names")));
|
2011-03-12 21:57:11 +03:00
|
|
|
connect(&cb_resolve_hosts, SIGNAL(toggled(bool)), this, SLOT(emitSettingsChanged()));
|
|
|
|
cb_resolve_hosts.setChecked(pref.resolvePeerHostNames());
|
|
|
|
setCellWidget(RESOLVE_HOSTS, VALUE, &cb_resolve_hosts);
|
2010-03-25 22:16:43 +03:00
|
|
|
// Max Half Open connections
|
|
|
|
setItem(MAX_HALF_OPEN, PROPERTY, new QTableWidgetItem(tr("Maximum number of half-open connections [0: Disabled]")));
|
2011-03-12 21:57:11 +03:00
|
|
|
connect(&spin_maxhalfopen, SIGNAL(valueChanged(int)), this, SLOT(emitSettingsChanged()));
|
|
|
|
spin_maxhalfopen.setMinimum(0);
|
|
|
|
spin_maxhalfopen.setMaximum(99999);
|
|
|
|
spin_maxhalfopen.setValue(pref.getMaxHalfOpenConnections());
|
|
|
|
setCellWidget(MAX_HALF_OPEN, VALUE, &spin_maxhalfopen);
|
2010-03-25 22:31:48 +03:00
|
|
|
// Super seeding
|
|
|
|
setItem(SUPER_SEEDING, PROPERTY, new QTableWidgetItem(tr("Strict super seeding")));
|
2011-03-12 21:57:11 +03:00
|
|
|
connect(&cb_super_seeding, SIGNAL(toggled(bool)), this, SLOT(emitSettingsChanged()));
|
2010-06-07 12:32:41 +04:00
|
|
|
#if LIBTORRENT_VERSION_MINOR > 14
|
2011-03-12 21:57:11 +03:00
|
|
|
cb_super_seeding.setChecked(pref.isSuperSeedingEnabled());
|
2010-03-25 22:31:48 +03:00
|
|
|
#else
|
2011-03-12 21:57:11 +03:00
|
|
|
cb_super_seeding.setEnabled(false);
|
2010-03-25 22:31:48 +03:00
|
|
|
#endif
|
2011-03-12 21:57:11 +03:00
|
|
|
setCellWidget(SUPER_SEEDING, VALUE, &cb_super_seeding);
|
2010-05-11 19:53:14 +04:00
|
|
|
// Network interface
|
|
|
|
setItem(NETWORK_IFACE, PROPERTY, new QTableWidgetItem(tr("Network Interface (requires restart)")));
|
2011-03-12 21:57:11 +03:00
|
|
|
combo_iface.addItem(tr("Any interface", "i.e. Any network interface"));
|
2010-11-16 23:34:31 +03:00
|
|
|
const QString current_iface = pref.getNetworkInterface();
|
2010-05-11 19:53:14 +04:00
|
|
|
int i = 1;
|
|
|
|
foreach(const QNetworkInterface& iface, QNetworkInterface::allInterfaces()) {
|
|
|
|
if(iface.name() == "lo") continue;
|
2011-03-12 21:57:11 +03:00
|
|
|
combo_iface.addItem(iface.name());
|
2010-05-11 19:53:14 +04:00
|
|
|
if(!current_iface.isEmpty() && iface.name() == current_iface)
|
2011-03-12 21:57:11 +03:00
|
|
|
combo_iface.setCurrentIndex(i);
|
2010-05-11 19:53:14 +04:00
|
|
|
++i;
|
|
|
|
}
|
2011-03-12 21:57:11 +03:00
|
|
|
connect(&combo_iface, SIGNAL(currentIndexChanged(int)), this, SLOT(emitSettingsChanged()));
|
|
|
|
setCellWidget(NETWORK_IFACE, VALUE, &combo_iface);
|
2011-02-05 18:44:48 +03:00
|
|
|
// Network address
|
|
|
|
setItem(NETWORK_ADDRESS, PROPERTY, new QTableWidgetItem(tr("IP Address to report to trackers (requires restart)")));
|
2011-03-12 21:57:11 +03:00
|
|
|
txt_network_address.setText(pref.getNetworkAddress());
|
|
|
|
connect(&txt_network_address, SIGNAL(textChanged(QString)), this, SLOT(emitSettingsChanged()));
|
|
|
|
setCellWidget(NETWORK_ADDRESS, VALUE, &txt_network_address);
|
2010-07-22 13:39:51 +04:00
|
|
|
// Program notifications
|
2011-02-06 17:27:34 +03:00
|
|
|
setItem(PROGRAM_NOTIFICATIONS, PROPERTY, new QTableWidgetItem(tr("Display program on-screen notifications")));
|
2011-03-12 21:57:11 +03:00
|
|
|
connect(&cb_program_notifications, SIGNAL(toggled(bool)), this, SLOT(emitSettingsChanged()));
|
|
|
|
cb_program_notifications.setChecked(pref.useProgramNotification());
|
|
|
|
setCellWidget(PROGRAM_NOTIFICATIONS, VALUE, &cb_program_notifications);
|
2010-10-16 01:55:56 +04:00
|
|
|
// Tracker State
|
|
|
|
setItem(TRACKER_STATUS, PROPERTY, new QTableWidgetItem(tr("Enable embedded tracker")));
|
2011-03-12 21:57:11 +03:00
|
|
|
connect(&cb_tracker_status, SIGNAL(toggled(bool)), this, SLOT(emitSettingsChanged()));
|
|
|
|
cb_tracker_status.setChecked(pref.isTrackerEnabled());
|
|
|
|
setCellWidget(TRACKER_STATUS, VALUE, &cb_tracker_status);
|
2010-10-16 01:55:56 +04:00
|
|
|
// Tracker port
|
|
|
|
setItem(TRACKER_PORT, PROPERTY, new QTableWidgetItem(tr("Embedded tracker port")));
|
2011-03-12 21:57:11 +03:00
|
|
|
connect(&spin_tracker_port, SIGNAL(valueChanged(int)), this, SLOT(emitSettingsChanged()));
|
|
|
|
spin_tracker_port.setMinimum(1);
|
|
|
|
spin_tracker_port.setMaximum(65535);
|
|
|
|
spin_tracker_port.setValue(pref.getTrackerPort());
|
|
|
|
setCellWidget(TRACKER_PORT, VALUE, &spin_tracker_port);
|
2010-12-21 20:52:49 +03:00
|
|
|
#if defined(Q_WS_WIN) || defined(Q_WS_MAC)
|
2010-12-21 20:41:11 +03:00
|
|
|
setItem(UPDATE_CHECK, PROPERTY, new QTableWidgetItem(tr("Check for software updates")));
|
2011-03-12 21:57:11 +03:00
|
|
|
connect(&cb_update_check, SIGNAL(toggled(bool)), this, SLOT(emitSettingsChanged()));
|
|
|
|
cb_update_check.setChecked(pref.isUpdateCheckEnabled());
|
|
|
|
setCellWidget(UPDATE_CHECK, VALUE, &cb_update_check);
|
2011-01-01 16:05:28 +03:00
|
|
|
#endif
|
|
|
|
#if defined(Q_WS_X11) && (QT_VERSION >= QT_VERSION_CHECK(4,6,0))
|
|
|
|
setItem(USE_ICON_THEME, PROPERTY, new QTableWidgetItem(tr("Use system icon theme")));
|
2011-03-12 21:57:11 +03:00
|
|
|
connect(&cb_use_icon_theme, SIGNAL(toggled(bool)), this, SLOT(emitSettingsChanged()));
|
|
|
|
cb_use_icon_theme.setChecked(pref.useSystemIconTheme());
|
|
|
|
setCellWidget(USE_ICON_THEME, VALUE, &cb_use_icon_theme);
|
2010-12-21 20:41:11 +03:00
|
|
|
#endif
|
2011-01-16 18:29:44 +03:00
|
|
|
// Torrent deletion confirmation
|
|
|
|
setItem(CONFIRM_DELETE_TORRENT, PROPERTY, new QTableWidgetItem(tr("Confirm torrent deletion")));
|
2011-03-12 21:57:11 +03:00
|
|
|
connect(&cb_confirm_torrent_deletion, SIGNAL(toggled(bool)), this, SLOT(emitSettingsChanged()));
|
|
|
|
cb_confirm_torrent_deletion.setChecked(pref.confirmTorrentDeletion());
|
|
|
|
setCellWidget(CONFIRM_DELETE_TORRENT, VALUE, &cb_confirm_torrent_deletion);
|
2010-01-31 18:11:15 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
void emitSettingsChanged() {
|
|
|
|
emit settingsChanged();
|
|
|
|
}
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void settingsChanged();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ADVANCEDSETTINGS_H
|