示例#1
0
文件: findbar.cpp 项目: Axure/okular
void FindBar::closeAndStopSearch()
{
    if ( m_search->lineEdit()->isSearchRunning() )
    {
        m_search->lineEdit()->stopSearch();
    }
    emit onCloseButtonPressed();
    close();
}
示例#2
0
TPanel::TPanel(QWidget *parent, Qt::WindowFlags flags, TDockWidget::Orientation orientation)
	: TDockWidget(parent, flags), m_panelType(""), m_isMaximizable(true), m_isMaximized(false), m_isActive(true), m_panelTitleBar(0), m_multipleInstancesAllowed(true)
{
	//setFeatures(QDockWidget::DockWidgetMovable | QDockWidget::DockWidgetFloatable);
	//setFloating(false);
	m_panelTitleBar = new TPanelTitleBar(this, orientation);
	setTitleBarWidget(m_panelTitleBar);
	//connect(m_panelTitleBar,SIGNAL(doubleClick()),this,SLOT(onDoubleClick()));
	connect(m_panelTitleBar, SIGNAL(doubleClick(QMouseEvent *)), this, SIGNAL(doubleClick(QMouseEvent *)));
	connect(m_panelTitleBar, SIGNAL(closeButtonPressed()), this, SLOT(onCloseButtonPressed()));
	setOrientation(orientation);
}