mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
Show human readable interface names (mostly affects Windows)
This commit is contained in:
@@ -1042,6 +1042,16 @@ public:
|
||||
QString getNetworkInterface() const {
|
||||
return value(QString::fromUtf8("Preferences/Connection/Interface"), QString()).toString();
|
||||
}
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(4,5,0)
|
||||
void setNetworkInterfaceName(const QString& iface) {
|
||||
setValue(QString::fromUtf8("Preferences/Connection/InterfaceName"), iface);
|
||||
}
|
||||
|
||||
QString getNetworkInterfaceName() const {
|
||||
return value(QString::fromUtf8("Preferences/Connection/InterfaceName"), QString()).toString();
|
||||
}
|
||||
#endif
|
||||
|
||||
void setNetworkAddress(const QString& addr) {
|
||||
setValue(QString::fromUtf8("Preferences/Connection/InetAddress"), addr);
|
||||
|
||||
Reference in New Issue
Block a user