Commit 9e0c8ba8 authored by hjk's avatar hjk
Browse files

compile fix

parent 7195c6b5
......@@ -84,20 +84,20 @@ bool IpAddressLineEdit::isValid() const
void IpAddressLineEdit::validateAddress(const QString &string)
{
QString copy(string);
int offset(0);
QString copy = string;
int offset = 0;
bool isValid = m_d->m_ipAddressValidator->validate(copy, offset) == QValidator::Acceptable;
if (isValid != m_d->m_addressIsValid) {
if (isValid) {
QPalette palette(palette());
palette.setColor(QPalette::Text, m_d->m_validColor);
setPalette(palette);
QPalette pal(palette());
pal.setColor(QPalette::Text, m_d->m_validColor);
setPalette(pal);
emit validAddressChanged(copy);
} else {
QPalette palette(palette());
palette.setColor(QPalette::Text, Qt::red);
setPalette(palette);
QPalette pal(palette());
pal.setColor(QPalette::Text, Qt::red);
setPalette(pal);
setToolTip(tr("The IP address is not valid."));
}
m_d->m_addressIsValid = isValid;
......
......@@ -775,7 +775,8 @@ void S60DeviceRunControl::initCommunication()
void S60DeviceRunControl::handleContextRemoved(const TcfTrkEvent &event)
{
QVector<QByteArray> &removedItems( static_cast<const TcfTrkRunControlContextRemovedEvent &>(event).ids());
const QVector<QByteArray> removedItems
= static_cast<const TcfTrkRunControlContextRemovedEvent &>(event).ids();
if (!m_runningProcessId.isEmpty()
&& removedItems.contains(m_runningProcessId.toAscii())) {
appendMessage(tr("Process has finished."), NormalMessageFormat);
......
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