//----------------------------------------------------------------------------- CTabView::~CTabView () { pParentView = 0; pParentFrame = 0; removeAllTabs (); if (tabBitmap) tabBitmap->forget (); }
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); }
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); } }