Remove unnecessary currentIndexChanged signal in database widget.

This commit is contained in:
Florian Geyer 2012-04-18 15:38:31 +02:00 committed by Felix Geyer
parent 3b603f685a
commit 89f138a868
3 changed files with 1 additions and 8 deletions

View File

@ -360,7 +360,7 @@ void DatabaseTabWidget::insertDatabase(Database* db, const DatabaseManagerStruct
connect(dbStruct.dbWidget->entryView(), SIGNAL(entrySelectionChanged()), SLOT(emitEntrySelectionChanged()));
connect(dbStruct.dbWidget, SIGNAL(closeRequest()), SLOT(closeDatabase()));
connect(db, SIGNAL(modified()), SLOT(modified()));
connect(dbStruct.dbWidget, SIGNAL(currentIndexChanged(int)), this, SIGNAL(currentWidgetIndexChanged(int)));
connect(dbStruct.dbWidget, SIGNAL(currentChanged(int)), this, SIGNAL(currentWidgetIndexChanged(int)));
}
DatabaseWidget* DatabaseTabWidget::currentDatabaseWidget()

View File

@ -185,11 +185,6 @@ void DatabaseWidget::switchToMasterKeyChange()
setCurrentIndex(3);
}
void DatabaseWidget::setCurrentIndex(int index) {
QStackedWidget::setCurrentIndex(index);
Q_EMIT currentIndexChanged(index);
}
bool DatabaseWidget::dbHasKey()
{
return m_db->hasKey();

View File

@ -41,7 +41,6 @@ public:
Q_SIGNALS:
void closeRequest();
void currentIndexChanged(int index);
public Q_SLOTS:
void createEntry();
@ -49,7 +48,6 @@ public Q_SLOTS:
void switchToEntryEdit();
void switchToGroupEdit();
void switchToMasterKeyChange();
void setCurrentIndex(int index);
private Q_SLOTS:
void switchToView(bool accepted);