- = ToolBox::createLabel(tr( "until %1" ).arg(aUntil.toString(iTimeFormat) ), importantTextFont);
- iUntilTextLabel->setAlignment(Qt::AlignHCenter);
- iUntilTextLabel->setStyleSheet("background-color: transparent");
- iUntilTextLabel->setHidden( true);
-
- // No connection to server note
- qDebug()
- << "RoomStatusIndicatorWidget::RoomStatusIndicatorWidget() creating connection label";
- QFrame* connectionLabelFrame = new QFrame( this );
- iConnectionLabel = new QLabel( tr( "No connection to server" ), connectionLabelFrame );
- iConnectionLabel->setFont(importantTextFont);
- iConnectionLabel->setAlignment(Qt::AlignHCenter);
- iConnectionLabel->setWordWrap( true);
- iConnectionLabel->setStyleSheet("background-color: transparent; color: red; text-decoration:blink; max-width: 250px");
- connectionLabelFrame->setFixedSize(iConnectionLabel->sizeHint() );
- if (connectedOnce && !connectionError)
- iConnectionLabel->setHidden( true);
-
- QVBoxLayout *topLayout = new QVBoxLayout;
- topLayout->addStretch();
+ = ToolBox::createLabel(tr( "until %1" ).arg(aUntil.toString(iTimeFormat) ), textFont);
+ iUntilTextLabel->setAlignment( Qt::AlignHCenter );
+ iUntilTextLabel->setHidden( true );
+
+ QHBoxLayout *topLayout = new QHBoxLayout;