mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-20 03:58:10 -04:00
Small refactoring in EditWidget and EditEntryWidget.
This commit is contained in:
parent
25f15073cc
commit
b0280e9d93
3 changed files with 7 additions and 5 deletions
|
@ -46,9 +46,12 @@ void EditWidget::add(const QString& labelText, QWidget* widget)
|
|||
m_ui->stackedWidget->addWidget(widget);
|
||||
}
|
||||
|
||||
void EditWidget::setRowHidden(int row, bool hide)
|
||||
void EditWidget::setRowHidden(QWidget* widget, bool hide)
|
||||
{
|
||||
m_ui->categoryList->item(row)->setHidden(hide);
|
||||
int row = m_ui->stackedWidget->indexOf(widget);
|
||||
if (row != -1) {
|
||||
m_ui->categoryList->item(row)->setHidden(hide);
|
||||
}
|
||||
}
|
||||
|
||||
void EditWidget::setCurrentRow(int index)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue