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