Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOjas Anand <work@hailmail.net>2020-04-17 16:51:36 +0300
committerJanek Bevendorff <janek@jbev.net>2020-05-04 01:05:28 +0300
commit1b18c5d51d8de2a278f950f575dff4bfab67f860 (patch)
tree6d0c3c8e4fed11f983fca5511bfab2132f2a5768 /tests/TestEntryModel.cpp
parentd9214db404571044ae94f92c9aba0963a0243832 (diff)
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
Diffstat (limited to 'tests/TestEntryModel.cpp')
-rw-r--r--tests/TestEntryModel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/TestEntryModel.cpp b/tests/TestEntryModel.cpp
index 670e43aab..6c4b97454 100644
--- a/tests/TestEntryModel.cpp
+++ b/tests/TestEntryModel.cpp
@@ -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();