summaryrefslogtreecommitdiff
path: root/src/mainview.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-29 11:26:42 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-10-29 11:26:42 +0100
commit228bd405a579f1653462809dae12cb48f2df941c (patch)
tree1a62c2c4bd57acdf35a233deed20e88141656345 /src/mainview.h
parentimported userAgentFromUrl method from KWebKit (diff)
downloadrekonq-228bd405a579f1653462809dae12cb48f2df941c.tar.xz
Fixing hide/show tab bar and flickering new tabs.
That happened because of the code moving from mainview to tabbar (my fault) (tabbar cannot draw and be drawn..)
Diffstat (limited to 'src/mainview.h')
-rw-r--r--src/mainview.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mainview.h b/src/mainview.h
index c2795048..f0fe183d 100644
--- a/src/mainview.h
+++ b/src/mainview.h
@@ -39,6 +39,9 @@
// KDE Includes
#include <KTabWidget>
+// Qt Includes
+#include <QtGui/QToolButton>
+
// Forward Declarations
class QUrl;
class QWebFrame;
@@ -78,6 +81,8 @@ public:
*
*/
void updateTabBar();
+
+ QToolButton *addTabButton() const;
void clear();
/**
@@ -137,10 +142,14 @@ private slots:
void windowCloseRequested();
+ void postLaunch();
+
protected:
virtual void resizeEvent(QResizeEvent *event);
private:
+ void updateTabButtonPosition();
+
/**
* This function creates (if not exists) and returns a QLabel
* with a loading QMovie.
@@ -158,6 +167,9 @@ private:
QString m_loadingGitPath;
+ // the new tab button
+ QToolButton *m_addTabButton;
+
int m_currentTabIndex;
QList<HistoryItem> m_recentlyClosedTabs;