mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-04-25 07:57:20 +00:00
added menu title
This commit is contained in:
parent
d582445597
commit
cb033140ac
@ -1,6 +1,7 @@
|
|||||||
Ver.1.1.0 (netctl-1.7 update):
|
Ver.1.1.0 (netctl-1.7 update):
|
||||||
+ [gui] added frequency
|
+ [gui] added frequency
|
||||||
* [gui] changed definition if profile is enabled
|
+ [plasmoid] added menu title
|
||||||
|
* [gui] changed definition if profile is enabled]
|
||||||
* [dataengine] changed definition if profile is enabled
|
* [dataengine] changed definition if profile is enabled
|
||||||
|
|
||||||
Ver.1.0.6:
|
Ver.1.0.6:
|
||||||
|
@ -18,7 +18,7 @@ provides=('netctl-gui')
|
|||||||
conflicts=('netctl-gui')
|
conflicts=('netctl-gui')
|
||||||
source=("https://github.com/arcan1s/netctl-gui/releases/download/V.${pkgver}/${_pkgname}-${pkgver}-src.tar.xz")
|
source=("https://github.com/arcan1s/netctl-gui/releases/download/V.${pkgver}/${_pkgname}-${pkgver}-src.tar.xz")
|
||||||
install="${_pkgname}.install"
|
install="${_pkgname}.install"
|
||||||
md5sums=('7c25aa8597a2a89555e7b04c253d9019')
|
md5sums=('59679c899b1d429b41b60188e1de91dd')
|
||||||
|
|
||||||
_cmakekeys="-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DUSE_QT5:BOOL=0 -DBUILD_DATAENGINE:BOOL=0 -DBUILD_PLASMOID:BOOL=0"
|
_cmakekeys="-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DUSE_QT5:BOOL=0 -DBUILD_DATAENGINE:BOOL=0 -DBUILD_PLASMOID:BOOL=0"
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ optdepends=('kdebase-runtime: sudo support'
|
|||||||
'wpa_supplicant: wifi support')
|
'wpa_supplicant: wifi support')
|
||||||
source=("https://github.com/arcan1s/netctl-gui/releases/download/V.${pkgver}/${pkgname}-${pkgver}-src.tar.xz")
|
source=("https://github.com/arcan1s/netctl-gui/releases/download/V.${pkgver}/${pkgname}-${pkgver}-src.tar.xz")
|
||||||
install="${pkgname}.install"
|
install="${pkgname}.install"
|
||||||
md5sums=('7c25aa8597a2a89555e7b04c253d9019')
|
md5sums=('59679c899b1d429b41b60188e1de91dd')
|
||||||
|
|
||||||
_cmakekeys="-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_DATAENGINE:BOOL=0 -DBUILD_PLASMOID:BOOL=0"
|
_cmakekeys="-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_DATAENGINE:BOOL=0 -DBUILD_PLASMOID:BOOL=0"
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ optdepends=('kdebase-runtime: sudo support'
|
|||||||
'sudo: sudo support')
|
'sudo: sudo support')
|
||||||
source=("https://github.com/arcan1s/netctl-gui/releases/download/V.${pkgver}/${_pkgname}-${pkgver}-src.tar.xz")
|
source=("https://github.com/arcan1s/netctl-gui/releases/download/V.${pkgver}/${_pkgname}-${pkgver}-src.tar.xz")
|
||||||
install="${_pkgname}.install"
|
install="${_pkgname}.install"
|
||||||
md5sums=('7c25aa8597a2a89555e7b04c253d9019')
|
md5sums=('59679c899b1d429b41b60188e1de91dd')
|
||||||
|
|
||||||
_cmakekeys="-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_GUI:BOOL=0"
|
_cmakekeys="-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_GUI:BOOL=0"
|
||||||
|
|
||||||
|
@ -174,6 +174,12 @@ void Netctl::restartProfileSlot()
|
|||||||
|
|
||||||
QList<QAction*> Netctl::contextualActions()
|
QList<QAction*> Netctl::contextualActions()
|
||||||
{
|
{
|
||||||
|
if (status)
|
||||||
|
contextMenu[QString("title")]->setIcon(QIcon(paths[QString("active")]));
|
||||||
|
else
|
||||||
|
contextMenu[QString("title")]->setIcon(QIcon(paths[QString("inactive")]));
|
||||||
|
contextMenu[QString("title")]->setText(info[QString("name")] + QString(" ") + info[QString("status")]);
|
||||||
|
|
||||||
if (status) {
|
if (status) {
|
||||||
contextMenu[QString("start")]->setText(i18n("Start another profile"));
|
contextMenu[QString("start")]->setText(i18n("Start another profile"));
|
||||||
contextMenu[QString("stop")]->setVisible(true);
|
contextMenu[QString("stop")]->setVisible(true);
|
||||||
@ -211,6 +217,9 @@ void Netctl::createActions()
|
|||||||
{
|
{
|
||||||
menuActions.clear();
|
menuActions.clear();
|
||||||
|
|
||||||
|
contextMenu[QString("title")] = new QAction(QString("netctl-gui"), this);
|
||||||
|
menuActions.append(contextMenu[QString("title")]);
|
||||||
|
|
||||||
contextMenu[QString("start")] = new QAction(i18n("Start profile"), this);
|
contextMenu[QString("start")] = new QAction(i18n("Start profile"), this);
|
||||||
startProfileMenu = new QMenu(NULL);
|
startProfileMenu = new QMenu(NULL);
|
||||||
contextMenu[QString("start")]->setMenu(startProfileMenu);
|
contextMenu[QString("start")]->setMenu(startProfileMenu);
|
||||||
|
Loading…
Reference in New Issue
Block a user