refactor(FingerprintPreview): Adjust width so hash is not longer slighty cutoff in some cases
This commit is contained in:
parent
8d1b33b9f1
commit
8ed7a3efe1
1 changed files with 5 additions and 1 deletions
|
|
@ -5,6 +5,7 @@
|
|||
*/
|
||||
|
||||
#include "FingerprintPreview.h"
|
||||
#include "common/PlatformInfo.h"
|
||||
|
||||
#include <QFont>
|
||||
#include <QHBoxLayout>
|
||||
|
|
@ -26,7 +27,10 @@ FingerprintPreview::FingerprintPreview(
|
|||
fingerprint.type == QCryptographicHash::Sha256 ? sha256Layout(fingerprint, titleText, hashMode) : emptyLayout()
|
||||
);
|
||||
adjustSize();
|
||||
setFixedSize(size());
|
||||
int artPadding = 48;
|
||||
if (deskflow::platform::isMac())
|
||||
artPadding = 32;
|
||||
setFixedSize(m_lblArt->width() + artPadding, height());
|
||||
}
|
||||
|
||||
void FingerprintPreview::toggleMode(bool hashMode)
|
||||
|
|
|
|||
Loading…
Reference in a new issue