From 8940609a0054dc6691e6e71e5f618068d3d3e3c5 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Wed, 15 Mar 2017 10:59:51 +0100 Subject: [PATCH] StatusBarIcons: Set object names for icons Closes #2251 --- src/plugins/StatusBarIcons/sbi_imagesicon.cpp | 3 ++- src/plugins/StatusBarIcons/sbi_javascripticon.cpp | 3 ++- src/plugins/StatusBarIcons/sbi_networkicon.cpp | 3 ++- src/plugins/StatusBarIcons/sbi_zoomwidget.cpp | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/plugins/StatusBarIcons/sbi_imagesicon.cpp b/src/plugins/StatusBarIcons/sbi_imagesicon.cpp index b846895d8..e851ece66 100644 --- a/src/plugins/StatusBarIcons/sbi_imagesicon.cpp +++ b/src/plugins/StatusBarIcons/sbi_imagesicon.cpp @@ -1,6 +1,6 @@ /* ============================================================ * StatusBarIcons - Extra icons in statusbar for QupZilla -* Copyright (C) 2013-2014 David Rosca +* Copyright (C) 2013-2017 David Rosca * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -28,6 +28,7 @@ SBI_ImagesIcon::SBI_ImagesIcon(BrowserWindow* window, const QString &settingsPath) : SBI_Icon(window, settingsPath) { + setObjectName(QSL("sbi_imagesicon")); setCursor(Qt::PointingHandCursor); setToolTip(tr("Modify images loading settings per-site and globally")); diff --git a/src/plugins/StatusBarIcons/sbi_javascripticon.cpp b/src/plugins/StatusBarIcons/sbi_javascripticon.cpp index 0cc72dbc9..d17675635 100644 --- a/src/plugins/StatusBarIcons/sbi_javascripticon.cpp +++ b/src/plugins/StatusBarIcons/sbi_javascripticon.cpp @@ -1,6 +1,6 @@ /* ============================================================ * StatusBarIcons - Extra icons in statusbar for QupZilla -* Copyright (C) 2013-2014 David Rosca +* Copyright (C) 2013-2017 David Rosca * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -29,6 +29,7 @@ SBI_JavaScriptIcon::SBI_JavaScriptIcon(BrowserWindow* window) : SBI_Icon(window) { + setObjectName(QSL("sbi_javascripticon")); setCursor(Qt::PointingHandCursor); setToolTip(tr("Modify JavaScript settings per-site and globally")); diff --git a/src/plugins/StatusBarIcons/sbi_networkicon.cpp b/src/plugins/StatusBarIcons/sbi_networkicon.cpp index 2af613fe8..f61cccd2c 100644 --- a/src/plugins/StatusBarIcons/sbi_networkicon.cpp +++ b/src/plugins/StatusBarIcons/sbi_networkicon.cpp @@ -1,6 +1,6 @@ /* ============================================================ * StatusBarIcons - Extra icons in statusbar for QupZilla -* Copyright (C) 2013-2014 David Rosca +* Copyright (C) 2013-2017 David Rosca * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -29,6 +29,7 @@ SBI_NetworkIcon::SBI_NetworkIcon(BrowserWindow* window) : SBI_Icon(window) , m_networkConfiguration(new QNetworkConfigurationManager(this)) { + setObjectName(QSL("sbi_networkicon")); setCursor(Qt::PointingHandCursor); onlineStateChanged(m_networkConfiguration->isOnline()); diff --git a/src/plugins/StatusBarIcons/sbi_zoomwidget.cpp b/src/plugins/StatusBarIcons/sbi_zoomwidget.cpp index 3da8d9115..1d403b2d1 100644 --- a/src/plugins/StatusBarIcons/sbi_zoomwidget.cpp +++ b/src/plugins/StatusBarIcons/sbi_zoomwidget.cpp @@ -1,6 +1,6 @@ /* ============================================================ * StatusBarIcons - Extra icons in statusbar for QupZilla -* Copyright (C) 2014 David Rosca +* Copyright (C) 2014-2017 David Rosca * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,6 +24,7 @@ SBI_ZoomWidget::SBI_ZoomWidget(BrowserWindow* parent) : QSlider(parent) , m_window(parent) { + setObjectName(QSL("sbi_zoomwidget")); setOrientation(Qt::Horizontal); setFixedWidth(100); setMaximumHeight(20);