mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-02 06:36:07 -04:00
Add "Size" column
- Sizes are displayed in B, KiB, MiB, and GiB with 2 significant digits after the decimal - Column is hidden by default - TestEntryModel updated for testing proxy model
This commit is contained in:
parent
d9214db404
commit
1b18c5d51d
6 changed files with 48 additions and 14 deletions
|
@ -295,7 +295,7 @@ void TestEntryModel::testProxyModel()
|
|||
*/
|
||||
QSignalSpy spyColumnRemove(modelProxy, SIGNAL(columnsAboutToBeRemoved(QModelIndex, int, int)));
|
||||
modelProxy->hideColumn(0, true);
|
||||
QCOMPARE(modelProxy->columnCount(), 12);
|
||||
QCOMPARE(modelProxy->columnCount(), 13);
|
||||
QVERIFY(!spyColumnRemove.isEmpty());
|
||||
|
||||
int oldSpyColumnRemoveSize = spyColumnRemove.size();
|
||||
|
@ -317,7 +317,7 @@ void TestEntryModel::testProxyModel()
|
|||
*/
|
||||
QSignalSpy spyColumnInsert(modelProxy, SIGNAL(columnsAboutToBeInserted(QModelIndex, int, int)));
|
||||
modelProxy->hideColumn(0, false);
|
||||
QCOMPARE(modelProxy->columnCount(), 13);
|
||||
QCOMPARE(modelProxy->columnCount(), 14);
|
||||
QVERIFY(!spyColumnInsert.isEmpty());
|
||||
|
||||
int oldSpyColumnInsertSize = spyColumnInsert.size();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue