forked from qt-creator/qt-creator
SearchResultWidget: Use member initialization
Change-Id: I0dea28ceec2ed3261a1a5b25c7b4b2c8f58f7be8 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
André Hartmann
parent
3fe14e4452
commit
de7d6afb55
@@ -79,12 +79,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
SearchResultWidget::SearchResultWidget(QWidget *parent) :
|
SearchResultWidget::SearchResultWidget(QWidget *parent) :
|
||||||
QWidget(parent),
|
QWidget(parent)
|
||||||
m_count(0),
|
|
||||||
m_preserveCaseSupported(true),
|
|
||||||
m_isShowingReplaceUI(false),
|
|
||||||
m_searchAgainSupported(false),
|
|
||||||
m_replaceSupported(false)
|
|
||||||
{
|
{
|
||||||
QVBoxLayout *layout = new QVBoxLayout(this);
|
QVBoxLayout *layout = new QVBoxLayout(this);
|
||||||
layout->setMargin(0);
|
layout->setMargin(0);
|
||||||
|
@@ -119,28 +119,28 @@ private:
|
|||||||
QList<SearchResultItem> checkedItems() const;
|
QList<SearchResultItem> checkedItems() const;
|
||||||
void updateMatchesFoundLabel();
|
void updateMatchesFoundLabel();
|
||||||
|
|
||||||
SearchResultTreeView *m_searchResultTreeView;
|
SearchResultTreeView *m_searchResultTreeView = nullptr;
|
||||||
int m_count;
|
int m_count = 0;
|
||||||
QString m_dontAskAgainGroup;
|
QString m_dontAskAgainGroup;
|
||||||
QFrame *m_messageWidget;
|
QFrame *m_messageWidget = nullptr;
|
||||||
InfoBar m_infoBar;
|
InfoBar m_infoBar;
|
||||||
InfoBarDisplay m_infoBarDisplay;
|
InfoBarDisplay m_infoBarDisplay;
|
||||||
QWidget *m_topReplaceWidget;
|
QWidget *m_topReplaceWidget = nullptr;
|
||||||
QLabel *m_replaceLabel;
|
QLabel *m_replaceLabel = nullptr;
|
||||||
QLineEdit *m_replaceTextEdit;
|
QLineEdit *m_replaceTextEdit = nullptr;
|
||||||
QToolButton *m_replaceButton;
|
QToolButton *m_replaceButton = nullptr;
|
||||||
QToolButton *m_searchAgainButton;
|
QToolButton *m_searchAgainButton = nullptr;
|
||||||
QCheckBox *m_preserveCaseCheck;
|
QCheckBox *m_preserveCaseCheck = nullptr;
|
||||||
QCheckBox *m_renameFilesCheckBox = nullptr;
|
QCheckBox *m_renameFilesCheckBox = nullptr;
|
||||||
QWidget *m_descriptionContainer;
|
QWidget *m_descriptionContainer = nullptr;
|
||||||
QLabel *m_label;
|
QLabel *m_label = nullptr;
|
||||||
QLabel *m_searchTerm;
|
QLabel *m_searchTerm = nullptr;
|
||||||
QToolButton *m_cancelButton;
|
QToolButton *m_cancelButton = nullptr;
|
||||||
QLabel *m_matchesFoundLabel;
|
QLabel *m_matchesFoundLabel = nullptr;
|
||||||
bool m_preserveCaseSupported;
|
bool m_preserveCaseSupported = true;
|
||||||
bool m_isShowingReplaceUI;
|
bool m_isShowingReplaceUI = false;
|
||||||
bool m_searchAgainSupported;
|
bool m_searchAgainSupported = false;
|
||||||
bool m_replaceSupported;
|
bool m_replaceSupported = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // Internal
|
} // Internal
|
||||||
|
Reference in New Issue
Block a user