From 7dff6ad103b493ce6f68c431504cea9584c4b67a Mon Sep 17 00:00:00 2001 From: nowrep Date: Mon, 5 Mar 2012 11:30:18 +0100 Subject: [PATCH] TabBar now accepts drops so you can drop url on it and open new tab. - small modifications in locationbar regarding focus handling --- src/lib/app/qupzilla.cpp | 1 + src/lib/bookmarks/bookmarkicon.cpp | 6 ++ src/lib/bookmarks/bookmarkicon.h | 1 + src/lib/bookmarks/bookmarkstoolbar.cpp | 36 +++---- src/lib/navigation/downicon.cpp | 6 ++ src/lib/navigation/downicon.h | 1 + src/lib/navigation/goicon.cpp | 7 ++ src/lib/navigation/goicon.h | 1 + src/lib/navigation/siteicon.cpp | 12 ++- src/lib/navigation/siteicon.h | 1 + src/lib/other/licenseviewer.cpp | 2 +- src/lib/other/licenseviewer.h | 2 +- src/lib/plugins/speeddial.cpp | 2 +- src/lib/preferences/thememanager.cpp | 2 +- src/lib/preferences/thememanager.h | 2 +- src/lib/rss/rssicon.cpp | 6 ++ src/lib/rss/rssicon.h | 1 + src/lib/webview/tabbar.cpp | 34 +++++++ src/lib/webview/tabbar.h | 3 + src/lib/webview/tabwidget.cpp | 96 +++++++------------ src/lib/webview/tabwidget.h | 22 ++++- .../AccessKeysNavigation/akn_handler.cpp | 10 +- .../AccessKeysNavigation/akn_plugin.cpp | 1 + .../AccessKeysNavigation/akn_settings.cpp | 2 +- .../AccessKeysNavigation/akn_settings.h | 7 +- 25 files changed, 164 insertions(+), 100 deletions(-) diff --git a/src/lib/app/qupzilla.cpp b/src/lib/app/qupzilla.cpp index 1c0abd75f..6b1dce862 100644 --- a/src/lib/app/qupzilla.cpp +++ b/src/lib/app/qupzilla.cpp @@ -1548,6 +1548,7 @@ void QupZilla::startPrivate(bool state) QMessageBox::StandardButton button = QMessageBox::question(this, tr("Start Private Browsing"), message, QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes); if (button != QMessageBox::Yes) { + m_actionPrivateBrowsing->setChecked(false); return; } diff --git a/src/lib/bookmarks/bookmarkicon.cpp b/src/lib/bookmarks/bookmarkicon.cpp index 039481341..f9e513874 100644 --- a/src/lib/bookmarks/bookmarkicon.cpp +++ b/src/lib/bookmarks/bookmarkicon.cpp @@ -102,6 +102,12 @@ void BookmarkIcon::setBookmarkDisabled() setToolTip(tr("Bookmark this Page")); } +void BookmarkIcon::contextMenuEvent(QContextMenuEvent* ev) +{ + // Prevent propagating to LocationBar + ev->accept(); +} + void BookmarkIcon::mousePressEvent(QMouseEvent* ev) { ClickableLabel::mousePressEvent(ev); diff --git a/src/lib/bookmarks/bookmarkicon.h b/src/lib/bookmarks/bookmarkicon.h index c62c643f1..e4c3a582e 100644 --- a/src/lib/bookmarks/bookmarkicon.h +++ b/src/lib/bookmarks/bookmarkicon.h @@ -41,6 +41,7 @@ private slots: void speedDialChanged(); private: + void contextMenuEvent(QContextMenuEvent* ev); void mousePressEvent(QMouseEvent* ev); void setBookmarkSaved(); diff --git a/src/lib/bookmarks/bookmarkstoolbar.cpp b/src/lib/bookmarks/bookmarkstoolbar.cpp index 679132faa..22e063c58 100644 --- a/src/lib/bookmarks/bookmarkstoolbar.cpp +++ b/src/lib/bookmarks/bookmarkstoolbar.cpp @@ -579,16 +579,32 @@ void BookmarksToolbar::aboutToShowFolderMenu() } } +void BookmarksToolbar::dropEvent(QDropEvent* e) +{ + const QMimeData* mime = e->mimeData(); + + if (!mime->hasUrls() || !mime->hasText()) { + QWidget::dropEvent(e); + return; + } + + QString title = mime->text(); + QUrl url = mime->urls().at(0); + QIcon icon = IconProvider::iconFromImage(qvariant_cast(mime->imageData())); + + m_bookmarksModel->saveBookmark(url, title, icon, "bookmarksToolbar"); +} + void BookmarksToolbar::dragEnterEvent(QDragEnterEvent* e) { const QMimeData* mime = e->mimeData(); - if (mime->hasUrls() || mime->hasText()) { + if (mime->hasUrls() && mime->hasText()) { e->acceptProposedAction(); return; } - QWidget::dropEvent(e); + QWidget::dragEnterEvent(e); } void BookmarksToolbar::showOnlyIconsChanged() @@ -608,22 +624,6 @@ void BookmarksToolbar::showOnlyIconsChanged() } } -void BookmarksToolbar::dropEvent(QDropEvent* e) -{ - const QMimeData* mime = e->mimeData(); - - if (!mime->hasUrls() || !mime->hasText()) { - QWidget::dropEvent(e); - return; - } - - QString title = mime->text(); - QUrl url = mime->urls().at(0); - QIcon icon = IconProvider::iconFromImage(qvariant_cast(mime->imageData())); - - m_bookmarksModel->saveBookmark(url, title, icon, "bookmarksToolbar"); -} - void BookmarksToolbar::refreshMostVisited() { m_menuMostVisited->clear(); diff --git a/src/lib/navigation/downicon.cpp b/src/lib/navigation/downicon.cpp index 0d0ee80ff..5753d1a4f 100644 --- a/src/lib/navigation/downicon.cpp +++ b/src/lib/navigation/downicon.cpp @@ -26,6 +26,12 @@ DownIcon::DownIcon(QWidget* parent) setCursor(Qt::ArrowCursor); } +void DownIcon::contextMenuEvent(QContextMenuEvent* ev) +{ + // Prevent propagating to LocationBar + ev->accept(); +} + void DownIcon::mousePressEvent(QMouseEvent* ev) { ClickableLabel::mousePressEvent(ev); diff --git a/src/lib/navigation/downicon.h b/src/lib/navigation/downicon.h index 4f247f990..95965d28f 100644 --- a/src/lib/navigation/downicon.h +++ b/src/lib/navigation/downicon.h @@ -27,6 +27,7 @@ public: explicit DownIcon(QWidget* parent = 0); private: + void contextMenuEvent(QContextMenuEvent* ev); void mousePressEvent(QMouseEvent* ev); }; diff --git a/src/lib/navigation/goicon.cpp b/src/lib/navigation/goicon.cpp index cf62a9d66..cfcb04a97 100644 --- a/src/lib/navigation/goicon.cpp +++ b/src/lib/navigation/goicon.cpp @@ -27,6 +27,13 @@ GoIcon::GoIcon(QWidget* parent) setHidden(true); } +void GoIcon::contextMenuEvent(QContextMenuEvent* ev) +{ + // Prevent propagating to LocationBar + ev->accept(); +} + + void GoIcon::mousePressEvent(QMouseEvent* ev) { ClickableLabel::mousePressEvent(ev); diff --git a/src/lib/navigation/goicon.h b/src/lib/navigation/goicon.h index bbeb6e6e5..1732ac1b3 100644 --- a/src/lib/navigation/goicon.h +++ b/src/lib/navigation/goicon.h @@ -27,6 +27,7 @@ public: explicit GoIcon(QWidget* parent = 0); private: + void contextMenuEvent(QContextMenuEvent* ev); void mousePressEvent(QMouseEvent* ev); }; diff --git a/src/lib/navigation/siteicon.cpp b/src/lib/navigation/siteicon.cpp index 4bb8dba0e..1a9e2dc23 100644 --- a/src/lib/navigation/siteicon.cpp +++ b/src/lib/navigation/siteicon.cpp @@ -32,21 +32,27 @@ SiteIcon::SiteIcon(LocationBar* parent) setFocusPolicy(Qt::ClickFocus); } +void SiteIcon::contextMenuEvent(QContextMenuEvent* e) +{ + // Prevent propagating to LocationBar + e->accept(); +} + void SiteIcon::mousePressEvent(QMouseEvent* e) { if (e->buttons() & Qt::LeftButton) { m_dragStartPosition = mapFromGlobal(e->globalPos()); } - ToolButton::mousePressEvent(e); - // Prevent propagating to LocationBar e->accept(); + + ToolButton::mousePressEvent(e); } void SiteIcon::mouseMoveEvent(QMouseEvent* e) { - if (!m_locationBar) { + if (!m_locationBar || !(e->buttons() & Qt::LeftButton)) { return; } diff --git a/src/lib/navigation/siteicon.h b/src/lib/navigation/siteicon.h index c846b8db4..3177f1571 100644 --- a/src/lib/navigation/siteicon.h +++ b/src/lib/navigation/siteicon.h @@ -29,6 +29,7 @@ public: explicit SiteIcon(LocationBar* parent); private: + void contextMenuEvent(QContextMenuEvent* e); void mousePressEvent(QMouseEvent* e); void mouseMoveEvent(QMouseEvent* e); diff --git a/src/lib/other/licenseviewer.cpp b/src/lib/other/licenseviewer.cpp index 04f701323..120f443b9 100644 --- a/src/lib/other/licenseviewer.cpp +++ b/src/lib/other/licenseviewer.cpp @@ -18,7 +18,7 @@ #include "licenseviewer.h" #include "globalfunctions.h" -LicenseViewer::LicenseViewer(QWidget *parent) +LicenseViewer::LicenseViewer(QWidget* parent) : QTextBrowser() { setAttribute(Qt::WA_DeleteOnClose); diff --git a/src/lib/other/licenseviewer.h b/src/lib/other/licenseviewer.h index d83c48533..232ea1b4a 100644 --- a/src/lib/other/licenseviewer.h +++ b/src/lib/other/licenseviewer.h @@ -27,7 +27,7 @@ class QT_QUPZILLA_EXPORT LicenseViewer : public QTextBrowser Q_OBJECT public: - explicit LicenseViewer(QWidget *parent = 0); + explicit LicenseViewer(QWidget* parent = 0); void setLicenseFile(const QString &fileName); }; diff --git a/src/lib/plugins/speeddial.cpp b/src/lib/plugins/speeddial.cpp index 8bd8479b8..e5e07d9cf 100644 --- a/src/lib/plugins/speeddial.cpp +++ b/src/lib/plugins/speeddial.cpp @@ -56,7 +56,7 @@ void SpeedDial::loadSettings() "url:\"http://www.qupzilla.com\"|title:\"QupZilla\";" "url:\"http://blog.qupzilla.com\"|title:\"QupZilla Blog\";" "url:\"https://github.com/nowrep/QupZilla\"|title:\"QupZilla GitHub\";" - "url:\"http://facebook.com\"|title:\"Facebook\";"; + "url:\"https://facebook.com\"|title:\"Facebook\";"; } changed(allPages); diff --git a/src/lib/preferences/thememanager.cpp b/src/lib/preferences/thememanager.cpp index 9cc2bf3e4..60c319edb 100644 --- a/src/lib/preferences/thememanager.cpp +++ b/src/lib/preferences/thememanager.cpp @@ -32,7 +32,7 @@ #define DEFAULT_THEME_NAME "linux" #endif -ThemeManager::ThemeManager(QWidget* parent, Preferences *preferences) +ThemeManager::ThemeManager(QWidget* parent, Preferences* preferences) : QWidget() , ui(new Ui::ThemeManager) , m_preferences(preferences) diff --git a/src/lib/preferences/thememanager.h b/src/lib/preferences/thememanager.h index e78b4a1c6..787426bdb 100644 --- a/src/lib/preferences/thememanager.h +++ b/src/lib/preferences/thememanager.h @@ -37,7 +37,7 @@ class QT_QUPZILLA_EXPORT ThemeManager : public QWidget Q_OBJECT public: - explicit ThemeManager(QWidget *parent, Preferences *preferences); + explicit ThemeManager(QWidget* parent, Preferences* preferences); ~ThemeManager(); void save(); diff --git a/src/lib/rss/rssicon.cpp b/src/lib/rss/rssicon.cpp index 334880c60..601a675e4 100644 --- a/src/lib/rss/rssicon.cpp +++ b/src/lib/rss/rssicon.cpp @@ -28,6 +28,12 @@ RssIcon::RssIcon(QWidget* parent) setVisible(false); } +void RssIcon::contextMenuEvent(QContextMenuEvent* ev) +{ + // Prevent propagating to LocationBar + ev->accept(); +} + void RssIcon::mousePressEvent(QMouseEvent* ev) { ClickableLabel::mousePressEvent(ev); diff --git a/src/lib/rss/rssicon.h b/src/lib/rss/rssicon.h index 9cdc0e497..a84c2f965 100644 --- a/src/lib/rss/rssicon.h +++ b/src/lib/rss/rssicon.h @@ -28,6 +28,7 @@ public: explicit RssIcon(QWidget* parent = 0); private: + void contextMenuEvent(QContextMenuEvent* ev); void mousePressEvent(QMouseEvent* ev); }; diff --git a/src/lib/webview/tabbar.cpp b/src/lib/webview/tabbar.cpp index 774651ffc..139918aa8 100644 --- a/src/lib/webview/tabbar.cpp +++ b/src/lib/webview/tabbar.cpp @@ -57,6 +57,8 @@ TabBar::TabBar(QupZilla* mainClass, TabWidget* tabWidget) setFocusPolicy(Qt::NoFocus); loadSettings(); + setAcceptDrops(true); + connect(this, SIGNAL(customContextMenuRequested(const QPoint &)), this, SLOT(contextMenuRequested(const QPoint &))); connect(m_tabWidget, SIGNAL(pinnedTabClosed()), this, SLOT(pinnedTabClosed())); connect(m_tabWidget, SIGNAL(pinnedTabAdded()), this, SLOT(pinnedTabAdded())); @@ -386,6 +388,38 @@ void TabBar::mouseReleaseEvent(QMouseEvent* event) QTabBar::mouseReleaseEvent(event); } +void TabBar::dragEnterEvent(QDragEnterEvent* event) +{ + const QMimeData* mime = event->mimeData(); + + if (mime->hasUrls()) { + event->acceptProposedAction(); + return; + } + + QTabBar::dragEnterEvent(event); +} + +void TabBar::dropEvent(QDropEvent* event) +{ + const QMimeData* mime = event->mimeData(); + + if (!mime->hasUrls()) { + QTabBar::dropEvent(event); + return; + } + + int index = tabAt(event->pos()); + if (index == -1) { + foreach(const QUrl & url, mime->urls()) { + m_tabWidget->addView(url, Qz::NT_SelectedTabAtTheEnd); + } + } + else { + p_QupZilla->weView(index)->load(mime->urls().first()); + } +} + void TabBar::disconnectObjects() { disconnect(this); diff --git a/src/lib/webview/tabbar.h b/src/lib/webview/tabbar.h index e8b640852..26a914813 100644 --- a/src/lib/webview/tabbar.h +++ b/src/lib/webview/tabbar.h @@ -83,6 +83,9 @@ private: void mouseMoveEvent(QMouseEvent* event); void mouseDoubleClickEvent(QMouseEvent* event); void mouseReleaseEvent(QMouseEvent* event); + void dragEnterEvent(QDragEnterEvent* event); + void dropEvent(QDropEvent* event); + QSize tabSizeHint(int index) const; // void tabInserted(int index); diff --git a/src/lib/webview/tabwidget.cpp b/src/lib/webview/tabwidget.cpp index f89186505..24ecafc2b 100644 --- a/src/lib/webview/tabwidget.cpp +++ b/src/lib/webview/tabwidget.cpp @@ -15,11 +15,11 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * ============================================================ */ +#include "tabwidget.h" +#include "tabbar.h" #include "tabbedwebview.h" #include "webpage.h" #include "qupzilla.h" -#include "tabwidget.h" -#include "tabbar.h" #include "iconprovider.h" #include "mainapplication.h" #include "webtab.h" @@ -27,7 +27,6 @@ #include "closedtabsmanager.h" #include "progressbar.h" #include "navigationbar.h" -#include "toolbutton.h" #include "locationbar.h" #include "websearchbar.h" #include "settings.h" @@ -38,70 +37,43 @@ #include #include -class QT_QUPZILLA_EXPORT NewTabButton : public QToolButton +AddTabButton::AddTabButton(TabWidget* tabWidget, TabBar* tabBar) + : ToolButton(tabWidget) + , m_tabBar(tabBar) + , m_tabWidget(tabWidget) { -public: - explicit NewTabButton(QWidget* parent) : QToolButton(parent) { -#ifndef Q_WS_WIN - setIcon(QIcon::fromTheme("list-add")); - setIconSize(QSize(16, 16)); - setAutoRaise(true); -#endif - } - QSize sizeHint() const { - QSize siz = QToolButton::sizeHint(); - siz.setWidth(26); - return siz; - } + setObjectName("tabwidget-button-addtab"); + setAutoRaise(true); + setFocusPolicy(Qt::NoFocus); + setAcceptDrops(true); + setToolTip(TabWidget::tr("New Tab")); +} -#ifdef Q_WS_WIN -private: - void paintEvent(QPaintEvent*) { - QPainter p(this); - QStyleOptionTabV3 opt; - opt.init(this); - style()->drawControl(QStyle::CE_TabBarTab, &opt, &p, this); - - QPixmap pix(":/icons/other/list-add.png"); - QRect r = this->rect(); - r.setHeight(r.height() + 3); - r.setWidth(r.width() + 3); - style()->drawItemPixmap(&p, r, Qt::AlignCenter, pix); - } -#endif -}; - -class QT_QUPZILLA_EXPORT TabListButton : public QToolButton +void AddTabButton::dragEnterEvent(QDragEnterEvent* event) { -public: - explicit TabListButton(QWidget* parent) : QToolButton(parent) { + const QMimeData* mime = event->mimeData(); + + if (mime->hasUrls()) { + event->acceptProposedAction(); + return; } - QSize sizeHint() const { - QSize siz = QToolButton::sizeHint(); - siz.setWidth(20); - return siz; + ToolButton::dragEnterEvent(event); +} + +void AddTabButton::dropEvent(QDropEvent* event) +{ + const QMimeData* mime = event->mimeData(); + + if (!mime->hasUrls()) { + ToolButton::dropEvent(event); + return; } -private: - void paintEvent(QPaintEvent*) { - QPainter p(this); - QStyleOptionToolButton opt; - opt.init(this); - if (isDown()) { - opt.state |= QStyle::State_On; - } - if (opt.state & QStyle::State_MouseOver) { - opt.activeSubControls = QStyle::SC_ToolButton; - } - if (!isChecked() && !isDown()) { - opt.state |= QStyle::State_Raised; - } - opt.state |= QStyle::State_AutoRaise; - - style()->drawComplexControl(QStyle::CC_ToolButton, &opt, &p, this); + foreach(const QUrl & url, mime->urls()) { + m_tabWidget->addView(url, Qz::NT_SelectedTabAtTheEnd); } -}; +} TabWidget::TabWidget(QupZilla* mainClass, QWidget* parent) : QTabWidget(parent) @@ -142,11 +114,7 @@ TabWidget::TabWidget(QupZilla* mainClass, QWidget* parent) m_buttonListTabs->setAutoRaise(true); m_buttonListTabs->setFocusPolicy(Qt::NoFocus); - m_buttonAddTab = new ToolButton(this); - m_buttonAddTab->setObjectName("tabwidget-button-addtab"); - m_buttonAddTab->setAutoRaise(true); - m_buttonAddTab->setToolTip(tr("New Tab")); - m_buttonAddTab->setFocusPolicy(Qt::NoFocus); + m_buttonAddTab = new AddTabButton(this, m_tabBar); connect(m_buttonAddTab, SIGNAL(clicked()), p_QupZilla, SLOT(addTab())); connect(m_menuTabs, SIGNAL(aboutToShow()), this, SLOT(aboutToShowClosedTabsMenu())); diff --git a/src/lib/webview/tabwidget.h b/src/lib/webview/tabwidget.h index 8b6019dd9..d028d2be7 100644 --- a/src/lib/webview/tabwidget.h +++ b/src/lib/webview/tabwidget.h @@ -21,6 +21,7 @@ #include #include +#include "toolbutton.h" #include "qz_namespace.h" class QStackedWidget; @@ -29,11 +30,22 @@ class QMenu; class QupZilla; class TabbedWebView; class TabBar; +class TabWidget; class WebTab; -class TabListButton; -class NewTabButton; class ClosedTabsManager; -class ToolButton; + +class QT_QUPZILLA_EXPORT AddTabButton : public ToolButton +{ +public: + explicit AddTabButton(TabWidget* tabWidget, TabBar* tabBar); + +private: + void dragEnterEvent(QDragEnterEvent* event); + void dropEvent(QDropEvent* event); + + TabBar* m_tabBar; + TabWidget* m_tabWidget; +}; class QT_QUPZILLA_EXPORT TabWidget : public QTabWidget { @@ -56,7 +68,7 @@ public: QList allTabs(bool withPinned = true); QStackedWidget* locationBars() { return m_locationBars; } ToolButton* buttonListTabs() { return m_buttonListTabs; } - ToolButton* buttonAddTab() { return m_buttonAddTab; } + AddTabButton* buttonAddTab() { return m_buttonAddTab; } void createKeyPressEvent(QKeyEvent* event); void showTabBar(); @@ -114,7 +126,7 @@ private: QMenu* m_menuTabs; ToolButton* m_buttonListTabs; - ToolButton* m_buttonAddTab; + AddTabButton* m_buttonAddTab; ClosedTabsManager* m_closedTabsManager; QStackedWidget* m_locationBars; diff --git a/src/plugins/AccessKeysNavigation/akn_handler.cpp b/src/plugins/AccessKeysNavigation/akn_handler.cpp index 398a0303f..79e61000d 100644 --- a/src/plugins/AccessKeysNavigation/akn_handler.cpp +++ b/src/plugins/AccessKeysNavigation/akn_handler.cpp @@ -167,6 +167,10 @@ void AKN_Handler::handleAccessKey(QKeyEvent* event) return; } + if (!m_view) { + return; + } + QChar key = text.at(0).toUpper(); if (m_accessKeyNodes.contains(key)) { @@ -196,6 +200,10 @@ void AKN_Handler::handleAccessKey(QKeyEvent* event) void AKN_Handler::showAccessKeys() { + if (!m_view) { + return; + } + QWebPage* page = m_view->page(); // Install event filter and connect loadStarted @@ -284,7 +292,7 @@ void AKN_Handler::showAccessKeys() void AKN_Handler::hideAccessKeys() { - if (!m_accessKeyLabels.isEmpty()) { + if (!m_accessKeyLabels.isEmpty() && m_view) { for (int i = 0; i < m_accessKeyLabels.count(); ++i) { QLabel* label = m_accessKeyLabels[i]; label->hide(); diff --git a/src/plugins/AccessKeysNavigation/akn_plugin.cpp b/src/plugins/AccessKeysNavigation/akn_plugin.cpp index 9a4c6d8a3..41b0c848b 100644 --- a/src/plugins/AccessKeysNavigation/akn_plugin.cpp +++ b/src/plugins/AccessKeysNavigation/akn_plugin.cpp @@ -25,6 +25,7 @@ AKN_Plugin::AKN_Plugin() : QObject() + , m_handler(0) { } diff --git a/src/plugins/AccessKeysNavigation/akn_settings.cpp b/src/plugins/AccessKeysNavigation/akn_settings.cpp index f4d22a167..75ae176b3 100644 --- a/src/plugins/AccessKeysNavigation/akn_settings.cpp +++ b/src/plugins/AccessKeysNavigation/akn_settings.cpp @@ -24,7 +24,7 @@ #include #include -AKN_Settings::AKN_Settings(AKN_Handler *handler, QWidget *parent) +AKN_Settings::AKN_Settings(AKN_Handler* handler, QWidget* parent) : QDialog(parent) , ui(new Ui::AKN_Settings) , m_handler(handler) diff --git a/src/plugins/AccessKeysNavigation/akn_settings.h b/src/plugins/AccessKeysNavigation/akn_settings.h index 38a6d3637..3f31a78f8 100644 --- a/src/plugins/AccessKeysNavigation/akn_settings.h +++ b/src/plugins/AccessKeysNavigation/akn_settings.h @@ -20,7 +20,8 @@ #include -namespace Ui { +namespace Ui +{ class AKN_Settings; } @@ -31,7 +32,7 @@ class AKN_Settings : public QDialog Q_OBJECT public: - explicit AKN_Settings(AKN_Handler* handler, QWidget *parent = 0); + explicit AKN_Settings(AKN_Handler* handler, QWidget* parent = 0); ~AKN_Settings(); private slots: @@ -39,7 +40,7 @@ private slots: void showLicence(); private: - Ui::AKN_Settings *ui; + Ui::AKN_Settings* ui; AKN_Handler* m_handler; QString m_settingsPath;