Implemented sizeHint for KCM, so it doesn't open in a super small window
This commit is contained in:
parent
567796231b
commit
7591e783ca
2 changed files with 12 additions and 0 deletions
10
kcm/kcm.cpp
10
kcm/kcm.cpp
|
@ -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"
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue