mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
removed selectAll()
This commit is contained in:
parent
85764d5973
commit
a6e3fc671e
|
@ -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<int>(content.size()) && content[col])
|
||||
content[col]->selectAll();
|
||||
}
|
||||
|
||||
int ChatLine::getColumnCount()
|
||||
{
|
||||
return content.size();
|
||||
|
|
|
@ -70,8 +70,6 @@ public:
|
|||
|
||||
void selectionCleared();
|
||||
void selectionCleared(int col);
|
||||
void selectAll();
|
||||
void selectAll(int col);
|
||||
|
||||
int getColumnCount();
|
||||
int getRowIndex() const;
|
||||
|
|
|
@ -51,10 +51,6 @@ void ChatLineContent::selectionCleared()
|
|||
{
|
||||
}
|
||||
|
||||
void ChatLineContent::selectAll()
|
||||
{
|
||||
}
|
||||
|
||||
bool ChatLineContent::isOverSelection(QPointF) const
|
||||
{
|
||||
return false;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user