mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix alignment of size in library view (fixes #2485)
This commit is contained in:
parent
5418bb066f
commit
61e278d36e
|
@ -1,4 +1,5 @@
|
||||||
/* Copyright (c) 2014-2017 waddlesplash
|
/* Copyright (c) 2014-2017 waddlesplash
|
||||||
|
* Copyright (c) 2013-2022 Jeffrey Pfau
|
||||||
*
|
*
|
||||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
@ -194,7 +195,7 @@ void LibraryTree::rebuildTree() {
|
||||||
i->setText(COL_LOCATION, QDir::toNativeSeparators(item.base));
|
i->setText(COL_LOCATION, QDir::toNativeSeparators(item.base));
|
||||||
i->setText(COL_PLATFORM, nicePlatformFormat(item.platform));
|
i->setText(COL_PLATFORM, nicePlatformFormat(item.platform));
|
||||||
i->setFilesize(item.filesize);
|
i->setFilesize(item.filesize);
|
||||||
i->setTextAlignment(COL_SIZE, Qt::AlignRight);
|
i->setTextAlignment(COL_SIZE, Qt::AlignTrailing | Qt::AlignVCenter);
|
||||||
i->setText(COL_CRC32, QString("%0").arg(item.crc32, 8, 16, QChar('0')));
|
i->setText(COL_CRC32, QString("%0").arg(item.crc32, 8, 16, QChar('0')));
|
||||||
m_items.insert(item.fullpath, i);
|
m_items.insert(item.fullpath, i);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue