summaryrefslogtreecommitdiff
path: root/noncore/todayplugins/weather/weatherconfig.cpp
Unidiff
Diffstat (limited to 'noncore/todayplugins/weather/weatherconfig.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/todayplugins/weather/weatherconfig.cpp49
1 files changed, 21 insertions, 28 deletions
diff --git a/noncore/todayplugins/weather/weatherconfig.cpp b/noncore/todayplugins/weather/weatherconfig.cpp
index 4663549..d3ff3c9 100644
--- a/noncore/todayplugins/weather/weatherconfig.cpp
+++ b/noncore/todayplugins/weather/weatherconfig.cpp
@@ -1,39 +1,38 @@
1/* 1/*
2                This file is part of the OPIE Project 2 This file is part of the OPIE Project
3 =. 3 =.
4             .=l. Copyright (c) 2002 Dan Williams <williamsdr@acm.org> 4 .=l. Copyright (c) 2002 Dan Williams <williamsdr@acm.org>
5           .>+-= 5 .>+-=
6 _;:,     .>    :=|. This file is free software; you can 6_;:, .> :=|. This file is free software; you can
7.> <`_,   >  .   <= redistribute it and/or modify it under 7.> <`_, > . <= redistribute it and/or modify it under
8:`=1 )Y*s>-.--   : the terms of the GNU General Public 8:`=1 )Y*s>-.-- : the terms of the GNU General Public
9.="- .-=="i,     .._ License as published by the Free Software 9.="- .-=="i, .._ License as published by the Free Software
10 - .   .-<_>     .<> Foundation; either version 2 of the License, 10- . .-<_> .<> Foundation; either version 2 of the License,
11     ._= =}       : or (at your option) any later version. 11 ._= =} : or (at your option) any later version.
12    .%`+i>       _;_. 12 .%`+i> _;_.
13    .i_,=:_.      -<s. This file is distributed in the hope that 13 .i_,=:_. -<s. This file is distributed in the hope that
14     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 14 + . -:. = it will be useful, but WITHOUT ANY WARRANTY;
15    : ..    .:,     . . . without even the implied warranty of 15 : .. .:, . . . without even the implied warranty of
16    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 16 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A
17  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU General 17 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General
18..}^=.=       =       ; Public License for more details. 18..}^=.= = ; Public License for more details.
19++=   -.     .`     .: 19++= -. .` .:
20 :     =  ...= . :.=- You should have received a copy of the GNU 20: = ...= . :.=- You should have received a copy of the GNU
21 -.   .:....=;==+<; General Public License along with this file; 21-. .:....=;==+<; General Public License along with this file;
22  -_. . .   )=.  = see the file COPYING. If not, write to the 22 -_. . . )=. = see the file COPYING. If not, write to the
23    --        :-=` Free Software Foundation, Inc., 23 -- :-=` Free Software Foundation, Inc.,
24 59 Temple Place - Suite 330, 24 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA. 25 Boston, MA 02111-1307, USA.
26 26
27*/ 27*/
28 28
29#include "weatherconfig.h" 29#include "weatherconfig.h"
30 30
31#include <qpe/config.h> 31#include <qpe/config.h>
32#include <qpe/qpeapplication.h> 32#include <qpe/qpeapplication.h>
33#include <qpe/resource.h>
34 33
35#include <qcheckbox.h> 34#include <qcheckbox.h>
36#include <qclipboard.h> 35#include <qclipboard.h>
37#include <qfontmetrics.h> 36#include <qfontmetrics.h>
38#include <qlabel.h> 37#include <qlabel.h>
39#include <qlayout.h> 38#include <qlayout.h>
@@ -70,18 +69,12 @@ WeatherPluginConfig::WeatherPluginConfig( QWidget *parent, const char* name)
70 QWhatsThis::add( locationEdit, tr( "Enter the 4 letter code for the desired location here. See http://www.nws.noaa.gov/tg/siteloc.shtml to find a location near you." ) ); 69 QWhatsThis::add( locationEdit, tr( "Enter the 4 letter code for the desired location here. See http://www.nws.noaa.gov/tg/siteloc.shtml to find a location near you." ) );
71 70
72 label = new QLabel( tr( "Visit http://www.nws.noaa.gov/tg/siteloc.shtml to find the nearest location." ), this ); 71 label = new QLabel( tr( "Visit http://www.nws.noaa.gov/tg/siteloc.shtml to find the nearest location." ), this );
73 label->setAlignment( AlignHCenter | WordBreak ); 72 label->setAlignment( AlignHCenter | WordBreak );
74 label->setMaximumHeight( label->height() ); 73 label->setMaximumHeight( label->height() );
75 layout->addMultiCellWidget( label, 2, 2, 0, 1 ); 74 layout->addMultiCellWidget( label, 2, 2, 0, 1 );
76 //layout->addWidget( label, 2, 0 );
77
78 //QPushButton *pb = new QPushButton( Resource::loadPixmap( "copy" ),
79 //tr( "Copy link" ), this );
80 //connect( pb, SIGNAL( clicked() ), this, SLOT( slotCopyLink() ) );
81 //layout->addWidget( pb, 2, 1 );
82 75
83 metricCB = new QCheckBox( tr( "Use metric units" ), this ); 76 metricCB = new QCheckBox( tr( "Use metric units" ), this );
84 metricCB->setMaximumHeight( fh + 5 ); 77 metricCB->setMaximumHeight( fh + 5 );
85 metricCB->setChecked( config.readBoolEntry( "Metric", TRUE ) ); 78 metricCB->setChecked( config.readBoolEntry( "Metric", TRUE ) );
86 layout->addMultiCellWidget( metricCB, 3, 3, 0, 1 ); 79 layout->addMultiCellWidget( metricCB, 3, 3, 0, 1 );
87 QWhatsThis::add( metricCB, tr( "Click here to select type of units displayed." ) ); 80 QWhatsThis::add( metricCB, tr( "Click here to select type of units displayed." ) );