mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-24 22:15:57 +03:00
Move disguising of tab widget into separate method
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
c57a5820d0
commit
d4fb1e7dad
2 changed files with 11 additions and 4 deletions
|
@ -196,10 +196,7 @@ AccountSettings::AccountSettings(AccountState *accountState, QWidget *parent)
|
|||
#if defined(BUILD_FILE_PROVIDER_MODULE)
|
||||
|
||||
#else
|
||||
// Ensure all elements of the tab widget are hidden.
|
||||
// Document mode lets the child view take up the whole view.
|
||||
_ui->tabWidget->setDocumentMode(true);
|
||||
_ui->tabWidget->tabBar()->hide();
|
||||
disguiseTabWidget();
|
||||
#endif
|
||||
|
||||
const auto mouseCursorChanger = new MouseCursorChanger(this);
|
||||
|
@ -1697,6 +1694,14 @@ void AccountSettings::initializeE2eEncryptionSettingsMessage()
|
|||
connect(actionEnableE2e, &QAction::triggered, this, &AccountSettings::slotE2eEncryptionGenerateKeys);
|
||||
}
|
||||
|
||||
void AccountSettings::disguiseTabWidget() const
|
||||
{
|
||||
// Ensure all elements of the tab widget are hidden.
|
||||
// Document mode lets the child view take up the whole view.
|
||||
_ui->tabWidget->setDocumentMode(true);
|
||||
_ui->tabWidget->tabBar()->hide();
|
||||
}
|
||||
|
||||
} // namespace OCC
|
||||
|
||||
#include "accountsettings.moc"
|
||||
|
|
|
@ -137,6 +137,8 @@ private:
|
|||
/// Returns the alias of the selected folder, empty string if none
|
||||
[[nodiscard]] QString selectedFolderAlias() const;
|
||||
|
||||
void disguiseTabWidget() const;
|
||||
|
||||
Ui::AccountSettings *_ui;
|
||||
|
||||
FolderStatusModel *_model;
|
||||
|
|
Loading…
Reference in a new issue