From 2ce86d9be1bbf99092348adf815578b110fe7289 Mon Sep 17 00:00:00 2001 From: hash Date: Sun, 13 Oct 2002 02:20:23 +0000 Subject: added a couple more buttons to the bar --- diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index 2a4d069..3af0cba 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp @@ -43,14 +43,15 @@ void MainWindow::initUI() { /* add a toolbar for icons */ m_icons = new QToolBar(this); - m_icons->setHorizontalStretchable( TRUE ); /* * new Action for new sessions */ - QAction* a = new QAction(); - a->setText( tr("New Connection") ); + QAction* a = new QAction(tr("New Connection"), + Resource::loadPixmap( "new" ), + QString::null, 0, this, 0); a->addTo( m_console ); + a->addTo( m_icons ); connect(a, SIGNAL(activated() ), this, SLOT(slotNew() ) ); @@ -96,16 +97,18 @@ void MainWindow::initUI() { /* * the settings action */ - m_setProfiles = new QAction(); - m_setProfiles->setText( tr("Configure Profiles") ); + m_setProfiles = new QAction(tr("Configure Profiles"), + Resource::loadPixmap( "SettingsIcon" ), + QString::null, 0, this, 0); m_setProfiles->addTo( m_settings ); + m_setProfiles->addTo( m_icons ); connect( m_setProfiles, SIGNAL(activated() ), this, SLOT(slotConfigure() ) ); /* * action that open/closes the keyboard */ - m_openKeys = new QAction ("Keyboard...", + m_openKeys = new QAction (tr("Open Keyboard..."), Resource::loadPixmap( "down" ), QString::null, 0, this, 0); -- cgit v0.9.0.2