mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Use the same behavior as the old time markers
This commit adds the same behavior for the old time markers on the new ones. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7a07665d89
commit
9f6ebf96a7
3 changed files with 30 additions and 7 deletions
|
|
@ -42,11 +42,13 @@ const QString& DiveTextItem::text()
|
|||
|
||||
void DiveTextItem::updateText()
|
||||
{
|
||||
if(internalText.isEmpty())
|
||||
return;
|
||||
|
||||
delete textItem;
|
||||
textItem = NULL;
|
||||
delete textBackgroundItem;
|
||||
textBackgroundItem = NULL;
|
||||
if(internalText.isEmpty()){
|
||||
return;
|
||||
}
|
||||
|
||||
QFont fnt(qApp->font());
|
||||
QFontMetrics fm(fnt);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue