From a6e3fc671e4262475c6c9a6b23b8229b8b3697a1 Mon Sep 17 00:00:00 2001 From: krepa098 Date: Mon, 19 Jan 2015 15:07:15 +0100 Subject: [PATCH] removed selectAll() --- src/chatlog/chatline.cpp | 12 ------------ src/chatlog/chatline.h | 2 -- src/chatlog/chatlinecontent.cpp | 4 ---- src/chatlog/chatlinecontent.h | 1 - src/chatlog/content/text.cpp | 9 --------- src/chatlog/content/text.h | 1 - 6 files changed, 29 deletions(-) diff --git a/src/chatlog/chatline.cpp b/src/chatlog/chatline.cpp index b0a56adea..3ba80e0f5 100644 --- a/src/chatlog/chatline.cpp +++ b/src/chatlog/chatline.cpp @@ -119,18 +119,6 @@ void ChatLine::selectionCleared(int col) content[col]->selectionCleared(); } -void ChatLine::selectAll() -{ - for(ChatLineContent* c : content) - c->selectAll(); -} - -void ChatLine::selectAll(int col) -{ - if(col < static_cast(content.size()) && content[col]) - content[col]->selectAll(); -} - int ChatLine::getColumnCount() { return content.size(); diff --git a/src/chatlog/chatline.h b/src/chatlog/chatline.h index 7514654cb..e90f0cd4b 100644 --- a/src/chatlog/chatline.h +++ b/src/chatlog/chatline.h @@ -70,8 +70,6 @@ public: void selectionCleared(); void selectionCleared(int col); - void selectAll(); - void selectAll(int col); int getColumnCount(); int getRowIndex() const; diff --git a/src/chatlog/chatlinecontent.cpp b/src/chatlog/chatlinecontent.cpp index 2dd5a9584..237c9f229 100644 --- a/src/chatlog/chatlinecontent.cpp +++ b/src/chatlog/chatlinecontent.cpp @@ -51,10 +51,6 @@ void ChatLineContent::selectionCleared() { } -void ChatLineContent::selectAll() -{ -} - bool ChatLineContent::isOverSelection(QPointF) const { return false; diff --git a/src/chatlog/chatlinecontent.h b/src/chatlog/chatlinecontent.h index 9cb2a3db8..1dd77e55d 100644 --- a/src/chatlog/chatlinecontent.h +++ b/src/chatlog/chatlinecontent.h @@ -38,7 +38,6 @@ public: virtual void selectionMouseMove(QPointF scenePos); virtual void selectionStarted(QPointF scenePos); virtual void selectionCleared(); - virtual void selectAll(); virtual bool isOverSelection(QPointF scenePos) const; virtual QString getSelectedText() const; diff --git a/src/chatlog/content/text.cpp b/src/chatlog/content/text.cpp index 2c03bdc97..9e5c87243 100644 --- a/src/chatlog/content/text.cpp +++ b/src/chatlog/content/text.cpp @@ -133,15 +133,6 @@ void Text::selectionCleared() update(); } -void Text::selectAll() -{ - regenerate(); - selectionAnchor = 0; - selectionEnd = doc->toPlainText().size(); - selectedText = text; - update(); -} - bool Text::isOverSelection(QPointF scenePos) const { int cur = cursorFromPos(scenePos); diff --git a/src/chatlog/content/text.h b/src/chatlog/content/text.h index 8c3ef17e2..7b838840f 100644 --- a/src/chatlog/content/text.h +++ b/src/chatlog/content/text.h @@ -37,7 +37,6 @@ public: virtual void selectionMouseMove(QPointF scenePos) override; virtual void selectionStarted(QPointF scenePos) override; virtual void selectionCleared() override; - virtual void selectAll() override; virtual bool isOverSelection(QPointF scenePos) const override; virtual QString getSelectedText() const override;