summaryrefslogtreecommitdiff
path: root/libopie/big-screen/example/osplitter_example.cpp
blob: e33737990b358b7b014ab708ce2ab20fc04db74e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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") );
    
}