refactoring qad widgets part 1

c++ cast, nullptr, forward declaration, agregate ui, connect to member functions, order and clear includes
This commit is contained in:
2022-12-11 16:27:04 +03:00
parent 5d9381dd37
commit 728c132f2b
22 changed files with 561 additions and 404 deletions

View File

@@ -49,7 +49,7 @@ class QAD_WIDGETS_EXPORT QCodeEdit: public QWidget
friend class _QCE_Viewport;
public:
QCodeEdit(QWidget * parent = 0);
QCodeEdit(QWidget * parent = nullptr);
~QCodeEdit();
enum ACClassType {
@@ -177,7 +177,7 @@ private:
bool hasBlockSelection() const;
void startBlockSelection();
void cancelBlockSelection();
void switchBlockSelection(QKeyEvent * ke = 0);
void switchBlockSelection(QKeyEvent * ke = nullptr);
bool removeBlockSelection(bool is_del);
void insertBlockSelection(QString text);
void createBlockSelection();