Commit e7a9b99e authored by Ramon Buldó's avatar Ramon Buldó

kernel: support hdpi displays

parent 455ecd9c
......@@ -39,9 +39,13 @@ QSize
KernelListViewDelegate::sizeHint( const QStyleOptionViewItem& option,
const QModelIndex& index ) const
{
Q_UNUSED( option )
Q_UNUSED( index )
return QSize( 300, 70 );
QFont buttonFont = option.font;
QFontMetrics buttonFontMetrics( buttonFont );
QSize buttonSize = buttonFontMetrics.size( Qt::TextSingleLine, "TestTest");
return QSize( 300, ((buttonSize.height() + 8) * 2) + 10 );
}
......
......@@ -28,6 +28,7 @@ MsmApplication::MsmApplication( int& argc, char* argv[] )
: QApplication( argc, argv ),
m_mainwindow( 0 )
{
setAttribute(Qt::AA_EnableHighDpiScaling, true);
setOrganizationName( "Manjaro" );
setOrganizationDomain( "Manjaro" );
setApplicationName( "Manjaro Settings Manager" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment