#ifndef __CPEXTENSIONS__QT__QUADSPLITTER__H__ #define __CPEXTENSIONS__QT__QUADSPLITTER__H__ #include #include #ifdef cpExtensions_Interface_QT4 /** * Inspired by: * https://forum.qt.io/topic/7144/quad-splitter-windows-an-implementation/2 */ #include namespace cpExtensions { namespace QT { /** */ class cpExtensions_EXPORT QuadSplitter : public QSplitter { Q_OBJECT; public: QuadSplitter( QWidget* parent = 0 ); virtual ~QuadSplitter( ); void addWidgets( QWidget* a, QWidget* b, QWidget* c, QWidget* d ); private slots: void _SyncBottom( int a, int b ); void _SyncUpper( int a, int b ); protected: QSplitter m_Bottom; QSplitter m_Upper; }; } // ecapseman } // ecapseman #endif // cpExtensions_Interface_QT4 #endif // __CPEXTENSIONS__QT__QUADSPLITTER__H__ // eof - $RCSfile$