summaryrefslogtreecommitdiff
path: root/examples/todayplugin/exampleplugin.cpp
authorzecke <zecke>2004-02-03 23:20:25 (UTC)
committer zecke <zecke>2004-02-03 23:20:25 (UTC)
commit2e5cb130457186a1ee83e34c5230ce4cd4869a57 (patch) (side-by-side diff)
treec4171aac8ee97f2fdab6b4132616ba37f0bd4402 /examples/todayplugin/exampleplugin.cpp
parented3e8f87affa7aba79bf8588490ae9771cb2bcf4 (diff)
downloadopie-2e5cb130457186a1ee83e34c5230ce4cd4869a57.zip
opie-2e5cb130457186a1ee83e34c5230ce4cd4869a57.tar.gz
opie-2e5cb130457186a1ee83e34c5230ce4cd4869a57.tar.bz2
Remove the GPL header
"" -> QString::null add tr
Diffstat (limited to 'examples/todayplugin/exampleplugin.cpp') (more/less context) (show whitespace changes)
-rw-r--r--examples/todayplugin/exampleplugin.cpp17
1 files changed, 3 insertions, 14 deletions
diff --git a/examples/todayplugin/exampleplugin.cpp b/examples/todayplugin/exampleplugin.cpp
index e5d75df..94a5836 100644
--- a/examples/todayplugin/exampleplugin.cpp
+++ b/examples/todayplugin/exampleplugin.cpp
@@ -1,23 +1,12 @@
/*
* exampleplugin.cpp
*
- * copyright : (c) 2002,2003,2004 by Maximilian Reiß
* email : harlekin@handhelds.org
*
*/
-/***************************************************************************
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- ***************************************************************************/
-
-
#include "exampleplugin.h"
ExamplePlugin::ExamplePlugin() {
m_widget = 0l;
}
@@ -32,13 +21,13 @@ QString ExamplePlugin::pluginName() const {
double ExamplePlugin::versionNumber() const {
return 0.1;
}
// this sets the image that will be shown on the left side of the plugin
QString ExamplePlugin::pixmapNameWidget() const {
- return "Tux";
+ return QString::fromLatin1("Tux");
}
QWidget* ExamplePlugin::widget( QWidget * wid ) {
if(!m_widget) {
m_widget = new ExamplePluginWidget( wid, "Example" );
}
@@ -49,19 +38,19 @@ QWidget* ExamplePlugin::widget( QWidget * wid ) {
// that would be the icon of the config widget in todays config view
QString ExamplePlugin::pixmapNameConfig() const {
return 0l;
}
// No config widget yet, look at the datebook plugin for an example of that
-TodayConfigWidget* ExamplePlugin::configWidget( QWidget* ) {
+TodayConfigWidget* ExamplePlugin::configWidget( QWidget* /*parent*/ ) {
return 0l;
}
// add the binary name of the app to launch here
QString ExamplePlugin::appName() const {
- return "";
+ return QString::null;
}
// if the plugin should be excluded form the refresh cycles that can be set in the today app
bool ExamplePlugin::excludeFromRefresh() const {
return false;
}