Implemented sizeHint for KCM, so it doesn't open in a super small window

This commit is contained in:
Albert Vaca 2015-03-01 13:59:28 -08:00
parent 567796231b
commit 7591e783ca
2 changed files with 12 additions and 0 deletions

View file

@ -261,5 +261,15 @@ void KdeConnectKcm::sendPing()
QDBusConnection::sessionBus().call(msg);
}
QSize KdeConnectKcm::sizeHint() const
{
return QSize(890,550); //Golden ratio :D
}
QSize KdeConnectKcm::minimumSizeHint() const
{
return QSize(500,300);
}
#include "kcm.moc"
#include "moc_kcm.cpp"

View file

@ -51,6 +51,8 @@ public:
private:
virtual void save();
virtual QSize sizeHint() const;
virtual QSize minimumSizeHint() const;
private Q_SLOTS:
void deviceSelected(const QModelIndex& current);