summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-04-05 17:16:28 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-04-05 17:16:28 +0200
commite1781ecb6ce807cf4afd991d16c55b1d9b5f8e58 (patch)
tree3ae32f47acf5494ff7a77e16ffb78db2a7f99a91 /src/mainview.cpp
parenttoo much things to handle.. make rekonq compile just with Qt >= 4.5.0git st (diff)
downloadrekonq-e1781ecb6ce807cf4afd991d16c55b1d9b5f8e58.tar.xz
Compiles just with 4.5..
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 70ce39fc..1c1ee678 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -59,11 +59,11 @@ MainView::MainView(QWidget *parent)
, m_lineEditCompleter(0)
, m_lineEdits(new QStackedWidget(this))
, m_tabBar(new TabBar(this))
+ , m_parent(parent)
{
setTabBar(m_tabBar);
loadingGitPath = KStandardDirs::locate("appdata" , "pics/loading.gif");
- kWarning() << loadingGitPath;
connect(m_tabBar, SIGNAL(newTab()), this, SLOT(newWebView()));
connect(m_tabBar, SIGNAL(closeTab(int)), this, SLOT(closeTab(int)));
@@ -81,6 +81,20 @@ MainView::MainView(QWidget *parent)
m_recentlyClosedTabsAction->setMenu(m_recentlyClosedTabsMenu);
m_recentlyClosedTabsAction->setEnabled(false);
+// if (oneCloseButton)
+// {
+// QToolButton *closeTabButton = new QToolButton(this);
+// closeTabButton->setDefaultAction(m_closeTabAction);
+// closeTabButton->setAutoRaise(true);
+// closeTabButton->setToolButtonStyle(Qt::ToolButtonIconOnly);
+// setCornerWidget(closeTabButton, Qt::TopRightCorner);
+// }
+// else
+// {
+// m_tabBar->setTabsClosable(true);
+// connect(m_tabBar, SIGNAL(tabCloseRequested(int)), this, SLOT(closeTab(int)));
+// }
+
// --
connect(this, SIGNAL(currentChanged(int)), this, SLOT(currentChanged(int)));
}