[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/network/konversation/src
From: Eike Hein <sho () eikehein ! com>
Date: 2006-01-16 17:15:38
Message-ID: 1137431738.544979.29152.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 498929 by hein:
Update status bar and window title on network rename, too,
if it happens to be the frontmost tab.
M +10 -1 konversationmainwindow.cpp
M +5 -0 statuspanel.cpp
M +1 -0 statuspanel.h
--- trunk/extragear/network/konversation/src/konversationmainwindow.cpp \
#498928:498929 @@ -906,6 +906,7 @@
// ... then put it into the tab widget, otherwise we'd have a race with server \
member addView(statusView,label);
+ connect(this, SIGNAL(prefsChanged()), statusView, SLOT(updateName()));
connect(statusView, SIGNAL(updateTabNotification(ChatWindow*,const \
Konversation::TabNotifyType&)), this, SLOT(setTabNotification(ChatWindow*,const \
Konversation::TabNotifyType&)));
connect(statusView,SIGNAL (sendFile()),server,SLOT (requestDccSend()) );
connect(server,SIGNAL (awayState(bool)),statusView,SLOT (indicateAway(bool)) );
@@ -1084,7 +1085,15 @@
ChatWindow* view = static_cast<ChatWindow*>(viewContainer->page(i));
if (view->getType()==ChatWindow::Status)
- getViewContainer()->setTabLabel(view,view->getServer()->serverGroupSettings()->name());
+ {
+ QString label = view->getServer()->serverGroupSettings()->name();
+ getViewContainer()->setTabLabel(view,label);
+ if (view==m_frontView)
+ {
+ m_channelInfoLabel->setText(label);
+ setCaption(label);
+ }
+ }
if (!Preferences::tabNotificationsLeds() && !Preferences::closeButtons())
getViewContainer()->setTabIconSet(view, QIconSet());
--- trunk/extragear/network/konversation/src/statuspanel.cpp #498928:498929
@@ -191,6 +191,11 @@
showNicknameBox(Preferences::showNicknameBox());
}
+void StatusPanel::updateName()
+{
+ setName(getServer()->serverGroupSettings()->name());
+}
+
void StatusPanel::sendFileMenu()
{
emit sendFile();
--- trunk/extragear/network/konversation/src/statuspanel.h #498928:498929
@@ -64,6 +64,7 @@
void showNicknameBox(bool show);
void updateAppearance();
virtual void appendInputText(const QString&);
+ void updateName();
protected slots:
void sendFileMenu();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic