summaryrefslogtreecommitdiff
path: root/noncore/net/opieirc/mainwindow.cpp
Unidiff
Diffstat (limited to 'noncore/net/opieirc/mainwindow.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opieirc/mainwindow.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/net/opieirc/mainwindow.cpp b/noncore/net/opieirc/mainwindow.cpp
index fe59c3b..bb03a1c 100644
--- a/noncore/net/opieirc/mainwindow.cpp
+++ b/noncore/net/opieirc/mainwindow.cpp
@@ -33,29 +33,30 @@ void MainWindow::loadSettings() {
33 IRCTab::m_textColor = config.readEntry("TextColor", "#000000"); 33 IRCTab::m_textColor = config.readEntry("TextColor", "#000000");
34 IRCTab::m_errorColor = config.readEntry("ErrorColor", "#FF0000"); 34 IRCTab::m_errorColor = config.readEntry("ErrorColor", "#FF0000");
35 IRCTab::m_selfColor = config.readEntry("SelfColor", "#CC0000"); 35 IRCTab::m_selfColor = config.readEntry("SelfColor", "#CC0000");
36 IRCTab::m_otherColor = config.readEntry("OtherColor", "#0000BB"); 36 IRCTab::m_otherColor = config.readEntry("OtherColor", "#0000BB");
37 IRCTab::m_serverColor = config.readEntry("ServerColor", "#0000FF"); 37 IRCTab::m_serverColor = config.readEntry("ServerColor", "#0000FF");
38 IRCTab::m_notificationColor = config.readEntry("NotificationColor", "#AA3300"); 38 IRCTab::m_notificationColor = config.readEntry("NotificationColor", "#AA3300");
39 IRCTab::m_maxLines = config.readNumEntry("Lines", 100);
39} 40}
40 41
41void MainWindow::selected(QWidget *) { 42void MainWindow::selected(QWidget *) {
42 m_tabWidget->setTabColor(m_tabWidget->currentPageIndex(), &black); 43 m_tabWidget->setTabColor(m_tabWidget->currentPageIndex(), black);
43} 44}
44 45
45void MainWindow::addTab(IRCTab *tab) { 46void MainWindow::addTab(IRCTab *tab) {
46 connect(tab, SIGNAL(changed(IRCTab *)), this, SLOT(changeEvent(IRCTab *))); 47 connect(tab, SIGNAL(changed(IRCTab *)), this, SLOT(changeEvent(IRCTab *)));
47 m_tabWidget->addTab(tab, tab->title()); 48 m_tabWidget->addTab(tab, tab->title());
48 m_tabWidget->showPage(tab); 49 m_tabWidget->showPage(tab);
49 tab->setID(m_tabWidget->currentPageIndex()); 50 tab->setID(m_tabWidget->currentPageIndex());
50 m_tabs.append(tab); 51 m_tabs.append(tab);
51} 52}
52 53
53void MainWindow::changeEvent(IRCTab *tab) { 54void MainWindow::changeEvent(IRCTab *tab) {
54 if (tab->id() != m_tabWidget->currentPageIndex()) 55 if (tab->id() != m_tabWidget->currentPageIndex())
55 m_tabWidget->setTabColor(tab->id(), &blue); 56 m_tabWidget->setTabColor(tab->id(), blue);
56} 57}
57 58
58void MainWindow::killTab(IRCTab *tab) { 59void MainWindow::killTab(IRCTab *tab) {
59 m_tabWidget->removePage(tab); 60 m_tabWidget->removePage(tab);
60 m_tabs.remove(tab); 61 m_tabs.remove(tab);
61 /* there might be nicer ways to do this .. */ 62 /* there might be nicer ways to do this .. */