-rw-r--r-- | noncore/net/opieirc/mainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/net/opieirc/mainwindow.cpp b/noncore/net/opieirc/mainwindow.cpp index c0e2ff1..3ed29e3 100644 --- a/noncore/net/opieirc/mainwindow.cpp +++ b/noncore/net/opieirc/mainwindow.cpp | |||
@@ -18,17 +18,17 @@ MainWindow::MainWindow(QWidget *parent, const char *name, WFlags) : QMainWindow( | |||
18 | setToolBarsMovable(FALSE); | 18 | setToolBarsMovable(FALSE); |
19 | QPEMenuBar *menuBar = new QPEMenuBar(this); | 19 | QPEMenuBar *menuBar = new QPEMenuBar(this); |
20 | QPopupMenu *irc = new QPopupMenu(this); | 20 | QPopupMenu *irc = new QPopupMenu(this); |
21 | menuBar->insertItem(tr("IRC"), irc); | 21 | menuBar->insertItem(tr("IRC"), irc); |
22 | QAction *a = new QAction(tr("New connection"), Resource::loadPixmap("pass"), QString::null, 0, this, 0); | 22 | QAction *a = new QAction(tr("New connection"), Resource::loadPixmap("pass"), QString::null, 0, this, 0); |
23 | connect(a, SIGNAL(activated()), this, SLOT(newConnection())); | 23 | connect(a, SIGNAL(activated()), this, SLOT(newConnection())); |
24 | a->setWhatsThis(tr("Create a new connection to an IRC server")); | 24 | a->setWhatsThis(tr("Create a new connection to an IRC server")); |
25 | a->addTo(irc); | 25 | a->addTo(irc); |
26 | a = new QAction(tr("Settings"), Resource::loadPixmap("opieirc/settings"), QString::null, 0, this, 0); | 26 | a = new QAction(tr("Settings"), Resource::loadPixmap("SettingsIcon"), QString::null, 0, this, 0); |
27 | a->setWhatsThis(tr("Configure OpieIRC's behavior and appearance")); | 27 | a->setWhatsThis(tr("Configure OpieIRC's behavior and appearance")); |
28 | connect(a, SIGNAL(activated()), this, SLOT(settings())); | 28 | connect(a, SIGNAL(activated()), this, SLOT(settings())); |
29 | a->addTo(irc); | 29 | a->addTo(irc); |
30 | loadSettings(); | 30 | loadSettings(); |
31 | } | 31 | } |
32 | 32 | ||
33 | void MainWindow::loadSettings() { | 33 | void MainWindow::loadSettings() { |
34 | Config config("OpieIRC"); | 34 | Config config("OpieIRC"); |
@@ -77,12 +77,12 @@ void MainWindow::newConnection() { | |||
77 | } | 77 | } |
78 | 78 | ||
79 | void MainWindow::settings() { | 79 | void MainWindow::settings() { |
80 | IRCSettings settings(this, "Settings", TRUE); | 80 | IRCSettings settings(this, "Settings", TRUE); |
81 | if (settings.exec() == QDialog::Accepted) { | 81 | if (settings.exec() == QDialog::Accepted) { |
82 | QListIterator<IRCTab> it(m_tabs); | 82 | QListIterator<IRCTab> it(m_tabs); |
83 | for (; it.current(); ++it) { | 83 | for (; it.current(); ++it) { |
84 | /* Inform all tabs about the new settings */ | 84 | /* Inform all tabs about the new settings */ |
85 | it.current()->settingsChanged(); | 85 | it.current()->settingsChanged(); |
86 | } | 86 | } |
87 | } | 87 | } |
88 | } | 88 | } |