Fixed build with -Wextra-semi
This commit is contained in:
@@ -81,7 +81,7 @@ public:
|
||||
/// Run "kddockwidgets_mdi_with_docking_example -n" to see it in action
|
||||
};
|
||||
Q_DECLARE_FLAGS(Options, Option)
|
||||
Q_ENUM(Options);
|
||||
Q_ENUM(Options)
|
||||
|
||||
/// @brief Options which will affect LayoutSaver save/restore
|
||||
enum class LayoutSaverOption {
|
||||
|
||||
@@ -302,7 +302,7 @@ enum class FloatingWindowFlag {
|
||||
UseQtWindow = 256,
|
||||
UseQtTool = 512,
|
||||
};
|
||||
Q_DECLARE_FLAGS(FloatingWindowFlags, FloatingWindowFlag);
|
||||
Q_DECLARE_FLAGS(FloatingWindowFlags, FloatingWindowFlag)
|
||||
|
||||
///@internal
|
||||
inline QString locationStr(Location loc)
|
||||
|
||||
@@ -45,7 +45,9 @@ public:
|
||||
bool isCurrentState() const;
|
||||
|
||||
virtual void onEntry() = 0;
|
||||
virtual void onExit() {};
|
||||
virtual void onExit()
|
||||
{
|
||||
}
|
||||
|
||||
private:
|
||||
MinimalStateMachine *const m_machine;
|
||||
|
||||
@@ -67,7 +67,9 @@ private:
|
||||
protected:
|
||||
virtual DropLocation hover_impl(QPoint globalPos) = 0;
|
||||
virtual void onHoveredFrameChanged(Frame *);
|
||||
virtual void updateVisibility() {};
|
||||
virtual void updateVisibility()
|
||||
{
|
||||
}
|
||||
|
||||
Frame *m_hoveredFrame = nullptr;
|
||||
DropArea *const m_dropArea;
|
||||
|
||||
@@ -187,7 +187,9 @@ public:
|
||||
// Q_SIGNALS: // Not a OQbject
|
||||
virtual void currentTabChanged(int index) = 0;
|
||||
virtual void currentDockWidgetChanged(KDDockWidgets::DockWidgetBase *) = 0;
|
||||
virtual void countChanged() {};
|
||||
virtual void countChanged()
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
void onTabInserted();
|
||||
|
||||
@@ -411,6 +411,6 @@ inline T *lastParentOfType(const QObject *child)
|
||||
return result;
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
Feature_All = Feature_NativeShadow | Feature_NativeResize | Feature_NativeDrag
|
||||
| Feature_NativeMaximize
|
||||
};
|
||||
Q_DECLARE_FLAGS(Features, Feature);
|
||||
Q_DECLARE_FLAGS(Features, Feature)
|
||||
|
||||
struct NativeFeatures
|
||||
{
|
||||
|
||||
@@ -30,7 +30,7 @@ public:
|
||||
DropLocation hover_impl(QPoint) override
|
||||
{
|
||||
return {};
|
||||
};
|
||||
}
|
||||
|
||||
DropLocation dropLocationForPos(QPoint) const
|
||||
{
|
||||
|
||||
@@ -29,7 +29,7 @@ public:
|
||||
None = 0,
|
||||
LazyResize = 1
|
||||
};
|
||||
Q_DECLARE_FLAGS(Flags, Flag);
|
||||
Q_DECLARE_FLAGS(Flags, Flag)
|
||||
|
||||
///@brief returns the singleton Config instance
|
||||
static Config &self();
|
||||
@@ -72,7 +72,7 @@ private:
|
||||
SeparatorFactoryFunc m_separatorFactoryFunc = nullptr;
|
||||
Flags m_flags = Flag::None;
|
||||
|
||||
Q_DISABLE_COPY(Config);
|
||||
Q_DISABLE_COPY(Config)
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -94,12 +94,12 @@ DockWidgetBase *KDDockWidgets::Tests::createDockWidget(const QString &name, QWid
|
||||
} else {
|
||||
return dock;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
DockWidgetBase *KDDockWidgets::Tests::createDockWidget(const QString &name, QColor color)
|
||||
{
|
||||
return createDockWidget(name, new MyWidget(name, color));
|
||||
};
|
||||
}
|
||||
|
||||
static QWidgetOrQuick *createGuestWidget(int i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user