CEDRIC  Revision_backup-2009-02
MySplitter.h
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * Copyright (C) 2008 Boris Iven, Max Hermann
4  *
5  * This file is part of the "CEDRIC Event Display" application.
6  *
7  *****************************************************************************/
8 
9 #ifndef MYSPLITTER_H_
10 #define MYSPLITTER_H_
11 
12 #include <QSplitter>
13 class QWidget;
14 
15 #include <iostream>
16 #include <map>
17 using std::cout;
18 using std::endl;
19 using std::map;
20 
21 
23 class MySplitter : public QSplitter
24 {
25 Q_OBJECT
26 
27 public:
28  MySplitter( QWidget* parent=0 );
29  MySplitter( Qt::Orientation orientation, QWidget* parent=0 );
30 
31 public slots:
33  void moveMySplitter( int pos, int index );
34 
35 private:
36  std::map<int,int> myLastPos;
37 };
38 
39 #endif /*MYSPLITTER_H_*/
MySplitter(QWidget *parent=0)
Definition: MySplitter.cpp:12
void moveMySplitter(int pos, int index)
This is only a public slot to allow connections to QSplitter::moveSplitter(), use with care! ...
Definition: MySplitter.cpp:20
Little hack to allow synchronizing splitters via signals (used for viewerMatrix vertical splitters in...
Definition: MySplitter.h:23