Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 267c9d39 authored by Tomas Mecir's avatar Tomas Mecir

more porting

parent 06d895c1
......@@ -60,7 +60,7 @@ void dlgMXPConsole::addLine (const QString &line)
sb->setValue (sb->maximum ());
}
QSize dlgObjects::sizeHint() const
QSize dlgMXPConsole::sizeHint() const
{
return QSize (300, 200);
}
......
......@@ -42,15 +42,11 @@ dlgOutputWindow::dlgOutputWindow (QWidget *parent) : QDialog(parent)
setFocusPolicy (Qt::StrongFocus);
owindow = new cConsole(this);
//our window shall also have a status bar
owindow->setVScrollBarMode (Q3ScrollView::AlwaysOn);
//no session information yet, will set it when it's available
sess = 0;
owindow->setSession (0);
KDialog::resizeLayout (this, 0, 5);
KWindowSystem::setType(this->winId(), NET::Utility);
layout->setMargin (0);
......
......@@ -28,7 +28,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <klocale.h>
#include <kpushbutton.h>
#include <qlabel.h>
#include <QDialogButtonBox>
#include <QLabel>
#include <QGridLayout>
#include <QListWidget>
#include <QVBoxLayout>
......@@ -50,23 +51,16 @@ void dlgWindows::createDialog()
{
//initial dialog size
setWindowTitle (i18n("Output Windows"));
setButtons (KDialog::Ok);
//create main dialog's widget
QWidget *page = new QWidget (this);
QGridLayout *layout = new QGridLayout (page);
setMainWidget (page);
//change button text
setButtonText (KDialog::Ok, i18n ("Done"));
QGridLayout *layout = new QGridLayout (this);
//create widgets
QLabel *label = new QLabel (i18n ("&List of output windows"), page);
box = new QListWidget (page);
QLabel *label = new QLabel (i18n ("&List of output windows"), this);
box = new QListWidget (this);
label->setBuddy (box);
QFrame *buttons = new QFrame (page);
QFrame *buttons = new QFrame (this);
QVBoxLayout *buttonslayout = new QVBoxLayout (buttons);
btshow = new KPushButton (i18n("&Show"), buttons);
......@@ -80,6 +74,12 @@ void dlgWindows::createDialog()
buttonslayout->addWidget (btdelete);
buttonslayout->addStretch (10);
QDialogButtonBox *dlgbuttons = new QDialogButtonBox (QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
QPushButton *button = dlgbuttons->button (QDialogButtonBox::Ok);
button->setText (i18n ("&Dont"));
connect (dlgbuttons, &QDialogButtonBox::accepted, this, &QDialog::accept);
connect (dlgbuttons, &QDialogButtonBox::rejected, this, &QDialog::reject);
layout->setColumnStretch (0, 10);
layout->setRowStretch (1, 10);
layout->setSpacing (5);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment