Commit d2c61af5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

WArning--

parent 0aa7fd01
......@@ -60,7 +60,7 @@ public:
/**
* Destroys the module view, along with all modules loaded, and any changes present in them.
*
* @warning The user will not be prompted to save changes if any exist.\n
* @warning The user will not be prompted to save changes if any exist.
*/
~ModuleView() override;
......
......@@ -25,7 +25,7 @@
class CategorizedView : public KCategorizedView
{
public:
CategorizedView( QWidget *parent = nullptr );
explicit CategorizedView( QWidget *parent = nullptr );
void setModel( QAbstractItemModel *model ) override;
protected:
......
......@@ -30,7 +30,7 @@ class CategoryDrawer : public KCategoryDrawer
{
Q_OBJECT
public:
CategoryDrawer(KCategorizedView *view);
explicit CategoryDrawer(KCategorizedView *view);
void drawCategory(const QModelIndex &index,
int sortRole,
......
......@@ -32,7 +32,7 @@ class IconMode : public BaseMode
Q_OBJECT
public:
IconMode(QObject * parent, const QVariantList& );
explicit IconMode(QObject * parent, const QVariantList& );
~IconMode() override;
QWidget * mainWidget() override;
void initEvent() override;
......
......@@ -25,7 +25,7 @@
class CategorizedView : public KCategorizedView
{
public:
CategorizedView( QWidget *parent = nullptr );
explicit CategorizedView( QWidget *parent = nullptr );
void setModel( QAbstractItemModel *model ) override;
protected:
......
......@@ -41,7 +41,6 @@ void CategoryDrawer::drawCategory(const QModelIndex &index,
painter->setRenderHint(QPainter::Antialiasing);
const QRect optRect = option.rect;
QFont font(QApplication::font());
font.setBold(true);
const QFontMetrics fontMetrics = QFontMetrics(font);
......
......@@ -30,7 +30,7 @@ class CategoryDrawer : public KCategoryDrawer
{
Q_OBJECT
public:
CategoryDrawer(KCategorizedView *view);
explicit CategoryDrawer(KCategorizedView *view);
void drawCategory(const QModelIndex &index,
int sortRole,
......
......@@ -85,6 +85,7 @@ void SidebarDelegate::paint(QPainter *painter, const QStyleOptionViewItem &optio
QBrush SidebarDelegate::foregroundBrush(const QStyleOptionViewItem &option, const QModelIndex &index) const
{
Q_UNUSED(index);
QPalette::ColorGroup cg = QPalette::Active;
if (!(option.state & QStyle::State_Enabled)) {
cg = QPalette::Disabled;
......
......@@ -33,7 +33,7 @@ class QAction;
class FocusHackWidget : public QWidget {
Q_OBJECT
public:
FocusHackWidget(QWidget *parent = nullptr);
explicit FocusHackWidget(QWidget *parent = nullptr);
~FocusHackWidget() override;
public Q_SLOTS:
......
Supports Markdown
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