diff options
author | Ken Moore <moorekou@gmail.com> | 2015-07-10 02:35:11 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-07-10 02:35:11 -0400 |
commit | fb8955c15a73911e53fdf1e7a7ada2630272ffd5 (patch) | |
tree | e73df3ba004f52539be9f57758123309d1764f3c /lumina-desktop/desktop-plugins/audioplayer | |
parent | Update lumina-config to list all desktop plugins on the screen, and only make... (diff) | |
download | lumina-fb8955c15a73911e53fdf1e7a7ada2630272ffd5.tar.gz lumina-fb8955c15a73911e53fdf1e7a7ada2630272ffd5.tar.bz2 lumina-fb8955c15a73911e53fdf1e7a7ada2630272ffd5.zip |
Ok, NOW the desktop plugins layout methodology is consistent/reliable. Had to implement my own tiling algorithm for initial plugin placements (and adjust a lot of the plugins to have better auto-set default sizes depending on font settings)
Diffstat (limited to 'lumina-desktop/desktop-plugins/audioplayer')
-rw-r--r-- | lumina-desktop/desktop-plugins/audioplayer/PlayerWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lumina-desktop/desktop-plugins/audioplayer/PlayerWidget.cpp b/lumina-desktop/desktop-plugins/audioplayer/PlayerWidget.cpp index cc1136f1..459e4610 100644 --- a/lumina-desktop/desktop-plugins/audioplayer/PlayerWidget.cpp +++ b/lumina-desktop/desktop-plugins/audioplayer/PlayerWidget.cpp @@ -262,7 +262,7 @@ AudioPlayerPlugin::AudioPlayerPlugin(QWidget *parent, QString ID) : LDPlugin(par this->layout()->setContentsMargins(0,0,0,0); this->layout()->addWidget(player); - this->setInitialSize(300,75); + this->setInitialSize(this->sizeHint().width(), this->sizeHint().height()); } AudioPlayerPlugin::~AudioPlayerPlugin(){ |