mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-07 09:05:57 -05:00
Mark free functions static where applicable
This commit is contained in:
@@ -237,14 +237,14 @@ void MacroSegmentList::HideLastDropLine()
|
||||
_dropLineIdx = -1;
|
||||
}
|
||||
|
||||
bool isInUpperHalfOf(const QPoint &pos, const QRect &rect)
|
||||
static bool isInUpperHalfOf(const QPoint &pos, const QRect &rect)
|
||||
{
|
||||
return QRect(rect.topLeft(),
|
||||
QSize(rect.size().width(), rect.size().height() / 2))
|
||||
.contains(pos);
|
||||
}
|
||||
|
||||
bool widgetIsInLayout(QWidget *w, QLayout *l)
|
||||
static bool widgetIsInLayout(QWidget *w, QLayout *l)
|
||||
{
|
||||
if (w == nullptr) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user