mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-05 13:37:43 +03:00
Coding style fixes.
This commit is contained in:
parent
2ac659f408
commit
e4bc302d3d
7 changed files with 97 additions and 79 deletions
|
@ -94,21 +94,19 @@ DatabaseWidget::DatabaseWidget(Database* db, QWidget* parent)
|
|||
DatabaseWidget::Mode DatabaseWidget::currentMode()
|
||||
{
|
||||
switch (currentIndex()) {
|
||||
case -1:
|
||||
return DatabaseWidget::None;
|
||||
break;
|
||||
case 0:
|
||||
return DatabaseWidget::ViewMode;
|
||||
break;
|
||||
case 1: // entry edit
|
||||
case 2: // group edit
|
||||
case 3: // change master key
|
||||
case 4: // database settings
|
||||
return DatabaseWidget::EditMode;
|
||||
break;
|
||||
case -1:
|
||||
return DatabaseWidget::None;
|
||||
case 0:
|
||||
return DatabaseWidget::ViewMode;
|
||||
case 1: // entry edit
|
||||
case 2: // group edit
|
||||
case 3: // change master key
|
||||
case 4: // database settings
|
||||
return DatabaseWidget::EditMode;
|
||||
default:
|
||||
Q_ASSERT(false);
|
||||
return DatabaseWidget::None;
|
||||
}
|
||||
|
||||
return DatabaseWidget::None;
|
||||
}
|
||||
|
||||
void DatabaseWidget::emitCurrentModeChanged()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue