Beispiel #1
0
KviWindowStack::KviWindowStack(QWidget * parent,const char *pcName)
: QStackedWidget(parent)
{
	setObjectName(pcName);
	setFrameShape(NoFrame);

    m_pWindowPopup = new QMenu(this);
    connect(m_pWindowPopup,SIGNAL(triggered(QAction *)),this,SLOT(menuActivated(QAction *)));
	connect(m_pWindowPopup,SIGNAL(aboutToShow()),this,SLOT(fillWindowPopup()));

	setAutoFillBackground(false);

	connect(this,SIGNAL(currentChanged(int)),this,SLOT(currentWindowChanged(int)));
}
Beispiel #2
0
KviMdiManager::KviMdiManager(QWidget * parent,const char *pcName)
: QMdiArea(parent)
{
	setObjectName(pcName);
	setFrameShape(NoFrame);
	setOption(QMdiArea::DontMaximizeSubWindowOnActivation, true);

	m_bIgnoreSDIModeChange = false;
	setIsInSDIMode(KVI_OPTION_BOOL(KviOption_boolMdiManagerInSdiMode));

    m_pWindowPopup = new QMenu(this);
    connect(m_pWindowPopup,SIGNAL(triggered(QAction *)),this,SLOT(menuActivated(QAction *)));
	connect(m_pWindowPopup,SIGNAL(aboutToShow()),this,SLOT(fillWindowPopup()));
    m_pTileMethodPopup = new QMenu(this);
    connect(m_pTileMethodPopup,SIGNAL(triggered(QAction *)),this,SLOT(tileMethodMenuActivated(QAction *)));

	setAutoFillBackground(false);
	viewport()->setAutoFillBackground(false);

	setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
	setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
	//setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
	//setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
}