author | zecke <zecke> | 2003-09-01 09:42:06 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-09-01 09:42:06 (UTC) |
commit | 45a479040238764f97eed267c74aed6cf27eece8 (patch) (side-by-side diff) | |
tree | d589b1a89a2f6f9862822c03235630e987f9bcb6 /libopie/big-screen/example/osplitter_example.cpp | |
parent | 143807c9d438ee6f07e92e6009ec5633088c34f4 (diff) | |
download | opie-45a479040238764f97eed267c74aed6cf27eece8.zip opie-45a479040238764f97eed267c74aed6cf27eece8.tar.gz opie-45a479040238764f97eed267c74aed6cf27eece8.tar.bz2 |
OSplitter the first BigScreen Extension widget is done
with a small example
Diffstat (limited to 'libopie/big-screen/example/osplitter_example.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie/big-screen/example/osplitter_example.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libopie/big-screen/example/osplitter_example.cpp b/libopie/big-screen/example/osplitter_example.cpp new file mode 100644 index 0000000..e337379 --- a/dev/null +++ b/libopie/big-screen/example/osplitter_example.cpp @@ -0,0 +1,28 @@ +#include <qdir.h> +#include <qlayout.h> + +#include "../osplitter.h" + +#include <qpe/qpeapplication.h> +#include <opie/oapplicationfactory.h> + +#include "osplitter_example.h" + +OPIE_EXPORT_APP( OApplicationFactory<OSplitterExample> ) + +OSplitterExample::OSplitterExample( QWidget *w,const char* n,WFlags f ) + : QWidget( w, n, f ){ + QVBoxLayout * lay = new QVBoxLayout(this); + OSplitter * splitter = new OSplitter( Horizontal, this ); + lay->addWidget( splitter ); + + OFileSelector *selector = new OFileSelector( splitter, OFileSelector::FileSelector, + OFileSelector::Normal, QDir::homeDirPath(), + QString::null ); + splitter->addWidget( selector, "zoom", tr("Selector 1") ); + + selector = new OFileSelector( splitter, OFileSelector::FileSelector, OFileSelector::Normal, + QDir::homeDirPath(), QString::null ); + splitter->addWidget( selector, "zoom", tr("Selector 2") ); + +} |