author | drw <drw> | 2002-12-16 00:26:32 (UTC) |
---|---|---|
committer | drw <drw> | 2002-12-16 00:26:32 (UTC) |
commit | e4057ee7fe74c83e2dc44f8b9870f65da60fc4fa (patch) (side-by-side diff) | |
tree | 027cebbca343052e970c90e7eed3447e14b58e39 /noncore/settings/appearance2/editScheme.cpp | |
parent | a6a23d1c30e395add577eec261ae728f8d783299 (diff) | |
download | opie-e4057ee7fe74c83e2dc44f8b9870f65da60fc4fa.zip opie-e4057ee7fe74c83e2dc44f8b9870f65da60fc4fa.tar.gz opie-e4057ee7fe74c83e2dc44f8b9870f65da60fc4fa.tar.bz2 |
QWhatsThis added
Diffstat (limited to 'noncore/settings/appearance2/editScheme.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/appearance2/editScheme.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/noncore/settings/appearance2/editScheme.cpp b/noncore/settings/appearance2/editScheme.cpp index eefeccc..7e5225f 100644 --- a/noncore/settings/appearance2/editScheme.cpp +++ b/noncore/settings/appearance2/editScheme.cpp @@ -15,9 +15,9 @@ : .. .:, . . . without even the implied warranty of =_ + =;=|` MERCHANTABILITY or FITNESS FOR A _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General ..}^=.= = ; Public License for more details. -++= -. .` .: +++= -. .` .: : = ...= . :.=- You should have received a copy of the GNU -. .:....=;==+<; General Public License along with this file; -_. . . )=. = see the file COPYING. If not, write to the -- :-=` Free Software Foundation, Inc., @@ -35,11 +35,12 @@ #include <qlayout.h> #include <qpopupmenu.h> #include <qscrollview.h> #include <qtoolbutton.h> +#include <qwhatsthis.h> -EditScheme::EditScheme ( int cnt, const QString *labels, QColor *colors, QWidget* parent, const char* name, bool modal, WFlags fl ) - : QDialog ( parent, name, modal, fl ) +EditScheme::EditScheme ( int cnt, const QString *labels, QColor *colors, QWidget* parent, const char* name, bool modal, WFlags ) + : QDialog ( parent, name, modal, WStyle_ContextHelp ) { setCaption ( tr( "Edit scheme" ) ); QGridLayout *layout = new QGridLayout ( this, 0, 0, 4, 4 ); @@ -50,11 +51,13 @@ EditScheme::EditScheme ( int cnt, const QString *labels, QColor *colors, QWidget for ( int i = 0; i < cnt; i++ ) { QLabel *l = new QLabel ( labels [i], this ); layout-> addWidget ( l, i, 0 ); + QWhatsThis::add( l, tr( "Click here to select a color for: " ).arg( labels [i] ) ); m_buttons [i] = new OColorButton ( this, colors [i] ); layout-> addWidget ( m_buttons [i], i, 1 ); + QWhatsThis::add( m_buttons [i], tr( "Click here to select a color for: " ).arg( labels [i] ) ); } } EditScheme::~EditScheme ( ) |