diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-09-19 23:22:13 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-12-10 02:48:05 +0100 |
commit | e315ff15daf26cbc70b6f2da50e6ca18081fc7c4 (patch) | |
tree | 6da0556f2c5c7efb13d8e8b03ba0092e7a5838d3 /src/tabwindow/tabbar.cpp | |
parent | Implement RekonqWindow (diff) | |
download | rekonq-e315ff15daf26cbc70b6f2da50e6ca18081fc7c4.tar.xz |
Integrated spell checking for rekonq2 (lindsay's work imported)
- inline spell highlighter. This requires WebKit 2.3 to work.
- Addition of a suggested replacement word list to the context menu,
for the word right clicked on
- A standard modeless spell check dialog that works on the current
editable text (or selection).
Heavily cribbed from Dawit's work on kdewebkitpart.
oops... also a codingstyle script round here... :)
Diffstat (limited to 'src/tabwindow/tabbar.cpp')
-rw-r--r-- | src/tabwindow/tabbar.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tabwindow/tabbar.cpp b/src/tabwindow/tabbar.cpp index 91d5e402..18393cf9 100644 --- a/src/tabwindow/tabbar.cpp +++ b/src/tabwindow/tabbar.cpp @@ -304,7 +304,7 @@ void TabBar::setTabHighlighted(int index, bool b) connect(anim, SIGNAL(finished()), m_animationMapper, SLOT(map())); setTabTextColor(index, highlightColor); - } + } } @@ -354,7 +354,7 @@ void TabBar::mouseMoveEvent(QMouseEvent *event) && tabIndex != currentIndex() && m_currentTabPreviewIndex != tabIndex && event->buttons() == Qt::NoButton - ) + ) { m_currentTabPreviewIndex = tabIndex; @@ -384,7 +384,7 @@ void TabBar::leaveEvent(QEvent *event) void TabBar::mousePressEvent(QMouseEvent *event) { hideTabPreview(); - + // just close tab on middle mouse click if (event->button() == Qt::MidButton) return; @@ -424,8 +424,8 @@ void TabBar::showTabPreview() int w = c_baseTabWidth; int h = w * tabW->size().height() / tabW->size().width(); - - m_previewPopup = new TabPreviewPopup(indexedTab->tabPreview(w,h), indexedTab->url().url() , this); + + m_previewPopup = new TabPreviewPopup(indexedTab->tabPreview(w, h), indexedTab->url().url() , this); int tabBarWidth = tabW->size().width(); int leftIndex = tabRect(m_currentTabPreviewIndex).x() + (tabRect(m_currentTabPreviewIndex).width() - w) / 2; |