Commit 8446b4f8 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use debug categories, add missing Q_REQUIRED_RESULT, add explicit

parent 33a666d8
Pipeline #104225 passed with stage
in 46 seconds
......@@ -37,17 +37,17 @@ public:
void updatePlugins(const QList<KontactInterface::Plugin *> &plugins);
void setCurrentPlugin(const QString &plugin);
int iconSize() const
Q_REQUIRED_RESULT int iconSize() const
{
return mIconSize;
}
bool showIcons() const
Q_REQUIRED_RESULT bool showIcons() const
{
return mShowIcons;
}
bool showText() const
Q_REQUIRED_RESULT bool showText() const
{
return mShowText;
}
......@@ -57,7 +57,7 @@ public:
mMainWindow = mainWindow;
}
MainWindow *mainWindow()
Q_REQUIRED_RESULT MainWindow *mainWindow()
{
return mMainWindow;
}
......
......@@ -116,7 +116,7 @@ void MainWindow::initGUI()
Q_ASSERT(navigatorToolBar->sizeHint().isValid());
navigatorToolBar->setMinimumWidth(navigatorToolBar->sizeHint().width());
} else {
qCritical() << "Unable to find navigatorToolBar, probably kontactui.rc is missing";
qCCritical(KONTACT_LOG) << "Unable to find navigatorToolBar, probably kontactui.rc is missing";
}
}
......
......@@ -38,7 +38,7 @@ public:
MainWindow();
~MainWindow() override;
PluginList pluginList() const override
Q_REQUIRED_RESULT PluginList pluginList() const override
{
return mPlugins;
}
......
......@@ -23,7 +23,7 @@ class SidePaneBase : public QWidget
Q_OBJECT
public:
SidePaneBase(KontactInterface::Core *core, QWidget *parent);
explicit SidePaneBase(KontactInterface::Core *core, QWidget *parent);
~SidePaneBase() override;
virtual void setCurrentPlugin(const QString &) = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment