1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

removed selectAll()

This commit is contained in:
krepa098 2015-01-19 15:07:15 +01:00
parent 85764d5973
commit a6e3fc671e
6 changed files with 0 additions and 29 deletions

View File

@ -119,18 +119,6 @@ void ChatLine::selectionCleared(int col)
content[col]->selectionCleared(); content[col]->selectionCleared();
} }
void ChatLine::selectAll()
{
for(ChatLineContent* c : content)
c->selectAll();
}
void ChatLine::selectAll(int col)
{
if(col < static_cast<int>(content.size()) && content[col])
content[col]->selectAll();
}
int ChatLine::getColumnCount() int ChatLine::getColumnCount()
{ {
return content.size(); return content.size();

View File

@ -70,8 +70,6 @@ public:
void selectionCleared(); void selectionCleared();
void selectionCleared(int col); void selectionCleared(int col);
void selectAll();
void selectAll(int col);
int getColumnCount(); int getColumnCount();
int getRowIndex() const; int getRowIndex() const;

View File

@ -51,10 +51,6 @@ void ChatLineContent::selectionCleared()
{ {
} }
void ChatLineContent::selectAll()
{
}
bool ChatLineContent::isOverSelection(QPointF) const bool ChatLineContent::isOverSelection(QPointF) const
{ {
return false; return false;

View File

@ -38,7 +38,6 @@ public:
virtual void selectionMouseMove(QPointF scenePos); virtual void selectionMouseMove(QPointF scenePos);
virtual void selectionStarted(QPointF scenePos); virtual void selectionStarted(QPointF scenePos);
virtual void selectionCleared(); virtual void selectionCleared();
virtual void selectAll();
virtual bool isOverSelection(QPointF scenePos) const; virtual bool isOverSelection(QPointF scenePos) const;
virtual QString getSelectedText() const; virtual QString getSelectedText() const;

View File

@ -133,15 +133,6 @@ void Text::selectionCleared()
update(); update();
} }
void Text::selectAll()
{
regenerate();
selectionAnchor = 0;
selectionEnd = doc->toPlainText().size();
selectedText = text;
update();
}
bool Text::isOverSelection(QPointF scenePos) const bool Text::isOverSelection(QPointF scenePos) const
{ {
int cur = cursorFromPos(scenePos); int cur = cursorFromPos(scenePos);

View File

@ -37,7 +37,6 @@ public:
virtual void selectionMouseMove(QPointF scenePos) override; virtual void selectionMouseMove(QPointF scenePos) override;
virtual void selectionStarted(QPointF scenePos) override; virtual void selectionStarted(QPointF scenePos) override;
virtual void selectionCleared() override; virtual void selectionCleared() override;
virtual void selectAll() override;
virtual bool isOverSelection(QPointF scenePos) const override; virtual bool isOverSelection(QPointF scenePos) const override;
virtual QString getSelectedText() const override; virtual QString getSelectedText() const override;