mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
removed unused function in SettingsDialog
This commit is contained in:
parent
b887f1c90e
commit
d83b597c75
2 changed files with 1 additions and 11 deletions
|
@ -20,8 +20,6 @@
|
|||
|
||||
namespace chatterino {
|
||||
|
||||
SettingsDialog *SettingsDialog::instance_ = nullptr;
|
||||
|
||||
SettingsDialog::SettingsDialog()
|
||||
: BaseWindow(BaseWindow::DisableCustomScaling)
|
||||
{
|
||||
|
@ -138,11 +136,6 @@ void SettingsDialog::filterElements(const QString &text)
|
|||
}
|
||||
}
|
||||
|
||||
SettingsDialog *SettingsDialog::instance()
|
||||
{
|
||||
return SettingsDialog::instance_;
|
||||
}
|
||||
|
||||
void SettingsDialog::addTabs()
|
||||
{
|
||||
this->ui_.tabContainer->setMargin(0);
|
||||
|
|
|
@ -34,7 +34,6 @@ class SettingsDialog : public BaseWindow
|
|||
public:
|
||||
SettingsDialog();
|
||||
|
||||
static SettingsDialog *instance(); // may be NULL
|
||||
static void showDialog(SettingsDialogPreference preferredTab =
|
||||
SettingsDialogPreference::NoPreference);
|
||||
|
||||
|
@ -44,18 +43,16 @@ protected:
|
|||
virtual void showEvent(QShowEvent *) override;
|
||||
|
||||
private:
|
||||
static SettingsDialog *instance_;
|
||||
|
||||
void refresh();
|
||||
|
||||
void initUi();
|
||||
SettingsDialogTab *tab(SettingsTabId id);
|
||||
void addTabs();
|
||||
void addTab(std::function<SettingsPage *()> page, const QString &name,
|
||||
const QString &iconPath, SettingsTabId id = {},
|
||||
Qt::Alignment alignment = Qt::AlignTop);
|
||||
void selectTab(SettingsDialogTab *tab, const bool byUser = true);
|
||||
void selectTab(SettingsTabId id);
|
||||
SettingsDialogTab *tab(SettingsTabId id);
|
||||
void filterElements(const QString &query);
|
||||
|
||||
void onOkClicked();
|
||||
|
|
Loading…
Reference in a new issue