Commit 51c8f388 authored by Fredrik Edemar's avatar Fredrik Edemar

compile!

svn path=/trunk/KDE/kdeedu/kmplot/; revision=550878
parent 873e2d34
......@@ -115,7 +115,7 @@ MainDlg::MainDlg(QWidget *parentWidget, QObject *parent, const QStringList& ) :
setInstance( KmPlotPartFactory::instance() );
kDebug() << "parentWidget->objectName():" << parentWidget->objectName() << endl;
if ( QString(parentWidget->objectName()).startsWith("kmplot") )
if ( QString(parentWidget->objectName()).startsWith("KmPlot") )
{
setXMLFile("kmplot_part.rc");
m_readonly = false;
......
......@@ -87,13 +87,13 @@ bool CoordsConfigDialog::evalY()
void CoordsConfigDialog::slotOk()
{
if ( !(configAxesDialog->radioButton1_4->isChecked() && !evalX()) && !(configAxesDialog->radioButton1_4_2->isChecked() && !evalY()))
KConfigDialog::slotOk();
slotButtonClicked( KDialog::Ok );
}
void CoordsConfigDialog::slotApply()
{
if ( !(configAxesDialog->radioButton1_4->isChecked() && !evalX()) && !(configAxesDialog->radioButton1_4_2->isChecked() && !evalY()))
KConfigDialog::slotApply();
slotButtonClicked( KDialog::Apply );
}
#include "coordsconfigdialog.moc"
......@@ -46,10 +46,12 @@ class QMinMax : public QWidget, public Ui::QMinMax
KMinMax::KMinMax(QWidget *parent )
: KDialog( parent, i18n("Find Minimum Point") )
: KDialog( parent )
{
m_mainWidget = new QMinMax( this );
setMainWidget( m_mainWidget );
setCaption( i18n("Find Minimum Point") );
m_mode = CalculateY;
connect( m_mainWidget->cmdClose, SIGNAL( clicked() ), this, SLOT( close() ));
......
......@@ -26,6 +26,8 @@
#ifndef KMINMAX_H
#define KMINMAX_H
#include <QListWidget>
#include "View.h"
namespace Ui{
......
......@@ -253,7 +253,7 @@ bool KmPlot::checkModified()
bool KmPlot::isModified()
{
QDBusReply<bool> reply = QDBusInterfacePtr( QDBus::sessionBus().baseService(), "/maindlg", "org.kde.kmplot.isModified")->call( QDBusAbstractInterface::UseEventLoop, "checkModified" );
QDBusReply<bool> reply = QDBusInterfacePtr( QDBus::sessionBus().baseService(), "/maindlg", "org.kde.kmplot.MainDlg")->call( QDBusAbstractInterface::UseEventLoop, "isModified" );
return reply.value();
}
......
......@@ -46,12 +46,15 @@
class ParameterValueList;
KParameterEditor::KParameterEditor(XParser *m, QList<Value> *l, QWidget *parent )
: KDialog( parent, i18n("Parameter Editor"), Ok|Cancel ),
: KDialog( parent ),
m_parameter(l),
m_parser(m)
{
m_mainWidget = new QParameterEditor( this );
setMainWidget( m_mainWidget );
setCaption( i18n("Parameter Editor") );
setButtons( Ok|Cancel );
foreach ( Value v, *m_parameter )
m_mainWidget->list->addItem( v.expression() );
......
......@@ -46,13 +46,14 @@
#include "xparser.h"
KSliderWindow::KSliderWindow( QWidget * parent, KActionCollection * ac ) :
KDialog( parent, i18n("Sliders") )
KDialog( parent )
{
m_clickedOnSlider = 0l;
setModal( false );
m_mainWidget = new SliderWindow( this );
setMainWidget( m_mainWidget );
setCaption( i18n("Sliders") );
assert( SLIDER_COUNT == 4 ); // safety check, incase SLIDER_COUNT is increased but not this code
......
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