summaryrefslogtreecommitdiff
path: root/noncore/apps
Unidiff
Diffstat (limited to 'noncore/apps') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/tableviewer/main.cpp6
-rw-r--r--noncore/apps/tableviewer/tableviewer.cpp26
-rw-r--r--noncore/apps/tableviewer/tableviewer.h3
3 files changed, 32 insertions, 3 deletions
diff --git a/noncore/apps/tableviewer/main.cpp b/noncore/apps/tableviewer/main.cpp
index 56c567f..d17ee65 100644
--- a/noncore/apps/tableviewer/main.cpp
+++ b/noncore/apps/tableviewer/main.cpp
@@ -26,5 +26,5 @@ int main( int argc, char ** argv )
26 26
27 TableViewerWindow * mw = new TableViewerWindow; 27 TableViewerWindow mw;
28 mw->setCaption( TableViewerWindow::tr("Table Viewer") ); 28 mw.setCaption( TableViewerWindow::tr("Table Viewer") );
29 a.showMainWidget(mw); 29 a.showMainWidget(&mw);
30 30
diff --git a/noncore/apps/tableviewer/tableviewer.cpp b/noncore/apps/tableviewer/tableviewer.cpp
index 0456b41..fbb5c24 100644
--- a/noncore/apps/tableviewer/tableviewer.cpp
+++ b/noncore/apps/tableviewer/tableviewer.cpp
@@ -36,2 +36,3 @@
36#include <qpe/qpemenubar.h> 36#include <qpe/qpemenubar.h>
37#include <qpe/qpetoolbar.h>
37#include <qpopupmenu.h> 38#include <qpopupmenu.h>
@@ -236,2 +237,7 @@ void TableViewerWindow::newDocument()
236 237
238void TableViewerWindow::setDocument(const QString &f)
239{
240 openDocument(DocLnk(f, TRUE));
241}
242
237void TableViewerWindow::openDocument(const DocLnk &f) 243void TableViewerWindow::openDocument(const DocLnk &f)
@@ -291,2 +297,22 @@ void TableViewerWindow::openDocument(const DocLnk &f)
291/*! 297/*!
298 Moves to the first item of the current table
299*/
300void TableViewerWindow::firstItem()
301{
302 listView->first();
303 ts.current_elem = listView->getCurrentData();
304 browseView->rebuildData();
305}
306
307/*!
308 Moves to the lat item of the current table
309*/
310void TableViewerWindow::lastItem()
311{
312 listView->last();
313 ts.current_elem = listView->getCurrentData();
314 browseView->rebuildData();
315}
316
317/*!
292 Moves to the next item of the current table 318 Moves to the next item of the current table
diff --git a/noncore/apps/tableviewer/tableviewer.h b/noncore/apps/tableviewer/tableviewer.h
index 0d3c39d..817db21 100644
--- a/noncore/apps/tableviewer/tableviewer.h
+++ b/noncore/apps/tableviewer/tableviewer.h
@@ -51,4 +51,7 @@ public slots:
51 void saveDocument(); 51 void saveDocument();
52 void setDocument(const QString &);
52 void openDocument(const DocLnk &); 53 void openDocument(const DocLnk &);
53 54
55 void firstItem();
56 void lastItem();
54 void nextItem(); 57 void nextItem();