chore: 格式化ElaWidgetTools代码

This commit is contained in:
sleepwithoutbz
2025-09-20 01:39:00 +08:00
parent d2fded145d
commit 4ab391f8a1
394 changed files with 10913 additions and 15860 deletions

View File

@@ -8,21 +8,21 @@ class ElaScrollArea;
class ElaText;
class QHBoxLayout;
class ElaScrollPagePrivate;
class ELA_EXPORT ElaScrollPage : public QWidget
{
class ELA_EXPORT ElaScrollPage : public QWidget {
Q_OBJECT
Q_Q_CREATE(ElaScrollPage)
Q_PROPERTY_CREATE_Q_H(QWidget*, CustomWidget)
Q_PROPERTY_CREATE_Q_H(QWidget *, CustomWidget)
public:
explicit ElaScrollPage(QWidget* parent = nullptr);
explicit ElaScrollPage(QWidget *parent = nullptr);
~ElaScrollPage();
void addCentralWidget(QWidget* centralWidget, bool isWidgetResizeable = true, bool isVerticalGrabGesture = true, qreal mousePressEventDelay = 0.5);
void addCentralWidget(QWidget *centralWidget, bool isWidgetResizeable = true, bool isVerticalGrabGesture = true,
qreal mousePressEventDelay = 0.5);
void navigation(int widgetIndex, bool isLogRoute = true);
void setPageTitleSpacing(int spacing);
int getPageTitleSpacing() const;
int getPageTitleSpacing() const;
void setTitleVisible(bool isVisible);
};