Diffstat (limited to 'noncore/settings/netsystemtime/ntptabwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/netsystemtime/ntptabwidget.cpp | 57 |
1 files changed, 31 insertions, 26 deletions
diff --git a/noncore/settings/netsystemtime/ntptabwidget.cpp b/noncore/settings/netsystemtime/ntptabwidget.cpp index 616bc22..16d21cc 100644 --- a/noncore/settings/netsystemtime/ntptabwidget.cpp +++ b/noncore/settings/netsystemtime/ntptabwidget.cpp | |||
@@ -1,33 +1,37 @@ | |||
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 OPIE team <opie@handhelds.org?> | 4 | Copyright (C) Opie Team <opie-devel@handhelds.org> |
5 | .>+-= | 5 | =. |
6 | _;:, .> :=|. This file is free software; you can | 6 | .=l. |
7 | .> <`_, > . <= redistribute it and/or modify it under | 7 | .>+-= |
8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 8 | _;:, .> :=|. This program is free software; you can |
9 | .="- .-=="i, .._ License as published by the Free Software | 9 | .> <`_, > . <= redistribute it and/or modify it under |
10 | - . .-<_> .<> Foundation; either version 2 of the License, | 10 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public |
11 | ._= =} : or (at your option) any later version. | 11 | .="- .-=="i, .._ License as published by the Free Software |
12 | .%`+i> _;_. | 12 | - . .-<_> .<> Foundation; either version 2 of the License, |
13 | .i_,=:_. -<s. This file is distributed in the hope that | 13 | ._= =} : or (at your option) any later version. |
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 14 | .%`+i> _;_. |
15 | : .. .:, . . . without even the implied warranty of | 15 | .i_,=:_. -<s. This program is distributed in the hope that |
16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 16 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General | 17 | : .. .:, . . . without even the implied warranty of |
18 | ..}^=.= = ; Public License for more details. | 18 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
19 | ++= -. .` .: | 19 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
20 | : = ...= . :.=- You should have received a copy of the GNU | 20 | ..}^=.= = ; Library General Public License for more |
21 | -. .:....=;==+<; General Public License along with this file; | 21 | ++= -. .` .: details. |
22 | -_. . . )=. = see the file COPYING. If not, write to the | 22 | : = ...= . :.=- |
23 | -- :-=` Free Software Foundation, Inc., | 23 | -. .:....=;==+<; You should have received a copy of the GNU |
24 | 59 Temple Place - Suite 330, | 24 | -_. . . )=. = Library General Public License along with |
25 | -- :-=` this library; see the file COPYING.LIB. | ||
26 | If not, write to the Free Software Foundation, | ||
27 | Inc., 59 Temple Place - Suite 330, | ||
25 | Boston, MA 02111-1307, USA. | 28 | Boston, MA 02111-1307, USA. |
26 | |||
27 | */ | 29 | */ |
28 | 30 | ||
29 | #include "ntptabwidget.h" | 31 | #include "ntptabwidget.h" |
30 | 32 | ||
31 | #include <qpe/resource.h> | 33 | #include <opie2/oresource.h> |
34 | |||
35 | #include <qpe/applnk.h> | ||
32 | 36 | ||
33 | #include <qlabel.h> | 37 | #include <qlabel.h> |
@@ -76,6 +80,7 @@ NTPTabWidget::NTPTabWidget( QWidget *parent ) | |||
76 | 80 | ||
77 | // Set NTP time button | 81 | // Set NTP time button |
78 | m_ntpBtn = new QPushButton( Resource::loadPixmap( "netsystemtime/ntptab" ), | 82 | m_ntpBtn = new QPushButton( Opie::Core::OResource::loadPixmap( "netsystemtime/ntptab", Opie::Core::OResource::SmallIcon ), |
79 | tr( "Get time from the network" ), container ); | 83 | tr( "Get time from the network" ), container ); |
84 | m_ntpBtn->setMinimumHeight( AppLnk::smallIconSize()+4 ); | ||
80 | connect( m_ntpBtn, SIGNAL(clicked()), this, SIGNAL(getNTPTime()) ); | 85 | connect( m_ntpBtn, SIGNAL(clicked()), this, SIGNAL(getNTPTime()) ); |
81 | layout->addMultiCellWidget( m_ntpBtn, 4, 4, 0, 1 ); | 86 | layout->addMultiCellWidget( m_ntpBtn, 4, 4, 0, 1 ); |