Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
Now using window title from contact list if there are no tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
kekekeks committed Dec 16, 2011
1 parent a97fb75 commit a7c8a2f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions contactlistcontainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,12 @@ QSize ContactListContainer::sizeHint() const
{
return QSize(200, 300);
}

QString ContactListContainer::title()
{
if(_embedded!=0)
return _embedded->windowTitle();
return QString("SkypeTab. [NOT INITIALIZED]");
}

}
1 change: 1 addition & 0 deletions contactlistcontainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class ContactListContainer : public QWidget
void embedWindow (QWidget*window);
virtual void timerEvent(QTimerEvent * e);
virtual QSize sizeHint() const;
QString title();
signals:

public slots:
Expand Down
3 changes: 3 additions & 0 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ void STabMainWindow::timerEvent(QTimerEvent *)
if(isActiveWindow())
container->setInputFocus();
}
else
setWindowTitle(_contacts->title());


if(windowIcon().cacheKey()!=wicon.cacheKey())
setWindowIcon(wicon);
Expand Down

0 comments on commit a7c8a2f

Please sign in to comment.