[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: Re: [kmix/kmix-improvements] src/gui2: Show a label when there are no controls available
From: Lukáš Tinkl <ltinkl () redhat ! com>
Date: 2012-09-26 7:38:40
Message-ID: 5062B100.905 () redhat ! com
[Download RAW message or body]
Dne 26.9.2012 03:35, Trever Fischer napsal(a):
> Git commit f02749c05acc3405059a6f2b7bac8086ef7fdca7 by Trever Fischer.
> Committed on 26/09/2012 at 02:13.
> Pushed by tdfischer into branch 'kmix-improvements'.
>
> Show a label when there are no controls available
>
> M +17 -1 src/gui2/ControlGroupTab.cpp
> M +5 -0 src/gui2/ControlGroupTab.h
>
> http://commits.kde.org/kmix/f02749c05acc3405059a6f2b7bac8086ef7fdca7
>
> diff --git a/src/gui2/ControlGroupTab.cpp b/src/gui2/ControlGroupTab.cpp
> index 6870fc2..71b5f03 100644
> --- a/src/gui2/ControlGroupTab.cpp
> +++ b/src/gui2/ControlGroupTab.cpp
> @@ -1,6 +1,8 @@
> #include "ControlGroupTab.h"
> #include "ControlSlider.h"
> #include <QtGui/QVBoxLayout>
> +#include <QtGui/QResizeEvent>
> +#include <QtGui/QLabel>
>
> #include "controlgroup_interface.h"
> #include "control_interface.h"
> @@ -13,6 +15,11 @@ ControlGroupTab::ControlGroupTab(org::kde::KMix::ControlGroup *group, QWidget *p
> , m_group(group)
> {
> m_layout = new QVBoxLayout(this);
> + m_emptyLabel = new QLabel(tr("No controls available."), this);
> + m_emptyLabel->setGeometry(geometry());
Is this a Qt-only app?
--
Lukáš Tinkl <ltinkl@redhat.com>
Software Engineer - Base Operating Systems Brno
KDE developer <lukas@kde.org>
Red Hat Inc. http://cz.redhat.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic