예제 #1
0
파일: ctabview.cpp 프로젝트: EQ4/vstgui
//-----------------------------------------------------------------------------
CTabView::~CTabView ()
{
	pParentView = 0;
	pParentFrame = 0;
	removeAllTabs ();
	if (tabBitmap)
		tabBitmap->forget ();
}
예제 #2
0
void DBWorker::clearHistory()
{
    QSqlQuery query = prepare("DELETE FROM browser_history;");
    execute(query);
    removeAllTabs();
    query = prepare("DELETE FROM link;");
    execute(query);

    QList<Link> linkList;
    emit historyAvailable(linkList);
}
예제 #3
0
void DBWorker::clearHistory()
{
    int oldTabCount = tabCount();
    QSqlQuery query = prepare("DELETE FROM browser_history;");
    execute(query);
    removeAllTabs();
    query = prepare("DELETE FROM link;");
    execute(query);

    QList<Link> linkList;
    emit historyAvailable(linkList);
    if (oldTabCount != 0) {
        QList<Tab> tabList;
        emit tabsAvailable(tabList);
    }
}