refactoring qad widgets part 2
c++ cast, nullptr, forward declaration, agregate ui, connect to member functions, order and clear includes
This commit is contained in:
@@ -20,16 +20,16 @@
|
||||
#ifndef QCODEEDIT_COMPLETER_P_H
|
||||
#define QCODEEDIT_COMPLETER_P_H
|
||||
|
||||
#include <QTreeWidget>
|
||||
#include "qcodeedit.h"
|
||||
#include <QTreeWidget>
|
||||
|
||||
|
||||
class QCodeEditCompleter: public QTreeWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
QCodeEditCompleter(QWidget * parent = 0);
|
||||
~QCodeEditCompleter();
|
||||
QCodeEditCompleter(QWidget * parent = nullptr);
|
||||
~QCodeEditCompleter() override;
|
||||
|
||||
void nextCompletition();
|
||||
void previousCompletition();
|
||||
@@ -39,16 +39,15 @@ public:
|
||||
QString currentReturn() const;
|
||||
QString currentValue() const;
|
||||
|
||||
private:
|
||||
void keyPressEvent(QKeyEvent * e) override;
|
||||
|
||||
private slots:
|
||||
void adjust();
|
||||
|
||||
signals:
|
||||
void commit();
|
||||
void gotoHRef(QCodeEdit::ACEntry e);
|
||||
|
||||
|
||||
private:
|
||||
void keyPressEvent(QKeyEvent * e) override;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user