mirror of
https://github.com/OpenMW/openmw.git
synced 2026-01-31 19:18:27 +00:00
Group setter methods together
This commit is contained in:
parent
e7933da84e
commit
294e62719b
2 changed files with 8 additions and 8 deletions
|
|
@ -102,6 +102,12 @@ CSVTools::SearchBox::SearchBox(QWidget* parent)
|
|||
updateSearchButtons();
|
||||
}
|
||||
|
||||
void CSVTools::SearchBox::setEditLock(bool locked)
|
||||
{
|
||||
mAllowReplace = !locked;
|
||||
updateSearchButtons();
|
||||
}
|
||||
|
||||
void CSVTools::SearchBox::setSearchMode(bool enabled)
|
||||
{
|
||||
mSearchEnabled = enabled;
|
||||
|
|
@ -157,12 +163,6 @@ std::string CSVTools::SearchBox::getReplaceText() const
|
|||
}
|
||||
}
|
||||
|
||||
void CSVTools::SearchBox::setEditLock(bool locked)
|
||||
{
|
||||
mAllowReplace = !locked;
|
||||
updateSearchButtons();
|
||||
}
|
||||
|
||||
void CSVTools::SearchBox::focus()
|
||||
{
|
||||
mInput.currentWidget()->setFocus();
|
||||
|
|
|
|||
|
|
@ -42,14 +42,14 @@ namespace CSVTools
|
|||
public:
|
||||
SearchBox(QWidget* parent = nullptr);
|
||||
|
||||
void setEditLock(bool locked);
|
||||
|
||||
void setSearchMode(bool enabled);
|
||||
|
||||
CSMTools::Search getSearch() const;
|
||||
|
||||
std::string getReplaceText() const;
|
||||
|
||||
void setEditLock(bool locked);
|
||||
|
||||
void focus();
|
||||
|
||||
private slots:
|
||||
|
|
|
|||
Loading…
Reference in a new issue