author | harlekin <harlekin> | 2003-03-08 22:58:57 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-03-08 22:58:57 (UTC) |
commit | c8425140a65f25cc83fbe08f0aa0d2f737c8f497 (patch) (side-by-side diff) | |
tree | 96044dd814b9ae151ef887a06c2488e83e0acf8a /noncore/net/opieirc | |
parent | 6ef522bce51f00dfd333d9e63295f3847f3dfeb5 (diff) | |
download | opie-c8425140a65f25cc83fbe08f0aa0d2f737c8f497.zip opie-c8425140a65f25cc83fbe08f0aa0d2f737c8f497.tar.gz opie-c8425140a65f25cc83fbe08f0aa0d2f737c8f497.tar.bz2 |
wrench from inline
-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 @@ -14,25 +14,25 @@ MainWindow::MainWindow(QWidget *parent, const char *name, WFlags) : QMainWindow( m_tabWidget = new IRCTabWidget(this); QWhatsThis::add(m_tabWidget, tr("Server connections, channels, queries and other things will be placed here")); connect(m_tabWidget, SIGNAL(currentChanged(QWidget *)), this, SLOT(selected(QWidget *))); setCentralWidget(m_tabWidget); setToolBarsMovable(FALSE); QPEMenuBar *menuBar = new QPEMenuBar(this); QPopupMenu *irc = new QPopupMenu(this); menuBar->insertItem(tr("IRC"), irc); QAction *a = new QAction(tr("New connection"), Resource::loadPixmap("pass"), QString::null, 0, this, 0); connect(a, SIGNAL(activated()), this, SLOT(newConnection())); a->setWhatsThis(tr("Create a new connection to an IRC server")); a->addTo(irc); - a = new QAction(tr("Settings"), Resource::loadPixmap("opieirc/settings"), QString::null, 0, this, 0); + a = new QAction(tr("Settings"), Resource::loadPixmap("SettingsIcon"), QString::null, 0, this, 0); a->setWhatsThis(tr("Configure OpieIRC's behavior and appearance")); connect(a, SIGNAL(activated()), this, SLOT(settings())); a->addTo(irc); loadSettings(); } void MainWindow::loadSettings() { Config config("OpieIRC"); config.setGroup("OpieIRC"); IRCTab::m_backgroundColor = config.readEntry("BackgroundColor", "#FFFFFF"); IRCTab::m_textColor = config.readEntry("TextColor", "#000000"); IRCTab::m_errorColor = config.readEntry("ErrorColor", "#FF0000"); @@ -73,16 +73,16 @@ void MainWindow::newConnection() { IRCServerTab *serverTab = new IRCServerTab(list.server(), this, m_tabWidget); addTab(serverTab); serverTab->doConnect(); } } void MainWindow::settings() { IRCSettings settings(this, "Settings", TRUE); if (settings.exec() == QDialog::Accepted) { QListIterator<IRCTab> it(m_tabs); for (; it.current(); ++it) { /* Inform all tabs about the new settings */ - it.current()->settingsChanged(); + it.current()->settingsChanged(); } } } |