[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu/kalzium/src/calculator
From: Kashyap Ramesh Puranik <kashthealien () gmail ! com>
Date: 2009-07-03 17:48:14
Message-ID: 1246643294.597146.23044.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 991004 by kashyappuranik:
Fixing an issue with the signal/slot invalid connection.
M +5 -5 concCalculator.cpp
M +1 -1 concCalculator.h
--- trunk/KDE/kdeedu/kalzium/src/calculator/concCalculator.cpp #991003:991004
@@ -60,10 +60,10 @@
this, SLOT(densitySolventChanged()));
connect(ui.densSlvt_unit , SIGNAL(activated(int)),
this, SLOT(densitySolventChanged()));
- connect(ui.concentration , SIGNAL(valueChanged(double)),
- this, SLOT(concentrationChanged(double)));
+ connect(ui.concentration , SIGNAL(valueChanged()),
+ this, SLOT(concentrationChanged()));
connect(ui.conc_unit , SIGNAL(activated(int)),
- this, SLOT(concentrationChanged(double)));
+ this, SLOT(concentrationChanged()));
connect(ui.mode, SIGNAL(activated(int)),
this, SLOT(setMode(int)));
connect(ui.reset, SIGNAL(clicked()),
@@ -764,9 +764,9 @@
}
// occurs when the concentration is changed
-void concCalculator::concentrationChanged(double value)
+void concCalculator::concentrationChanged()
{
- m_concentration = value;
+ m_concentration = ui.concentration->value();
calculate();
}
--- trunk/KDE/kdeedu/kalzium/src/calculator/concCalculator.h #991003:991004
@@ -106,7 +106,7 @@
void densitySolventChanged(void);
/// occurs when the concentration is changed
- void concentrationChanged(double);
+ void concentrationChanged();
/// occurs when any quantity is changed
void calculate(void);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic