Commit a18f7c52 authored by Alexander Schuch's avatar Alexander Schuch
Browse files

Remove trailing spaces.

parent 83eac1d0
...@@ -87,10 +87,10 @@ FleetDlg::init() ...@@ -87,10 +87,10 @@ FleetDlg::init()
m_fleetTable->setRowCount( fleets.count() ); m_fleetTable->setRowCount( fleets.count() );
QTableWidgetItem *item; QTableWidgetItem *item;
for( int f = 0; f < fleets.count(); ++f) { for( int f = 0; f < fleets.count(); ++f) {
curFleet = fleets.at(f); curFleet = fleets.at(f);
item = new QTableWidgetItem(); item = new QTableWidgetItem();
if( f < newFleets) { if( f < newFleets) {
item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsUserCheckable); item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsUserCheckable);
...@@ -105,23 +105,23 @@ FleetDlg::init() ...@@ -105,23 +105,23 @@ FleetDlg::init()
item = new QTableWidgetItem(QString::number(f + 1)); item = new QTableWidgetItem(QString::number(f + 1));
item->setFlags(Qt::ItemIsEnabled); item->setFlags(Qt::ItemIsEnabled);
m_fleetTable->setItem( f, 1, item ); m_fleetTable->setItem( f, 1, item );
item = new QTableWidgetItem(curFleet->source->name()); item = new QTableWidgetItem(curFleet->source->name());
item->setFlags(Qt::ItemIsEnabled); item->setFlags(Qt::ItemIsEnabled);
m_fleetTable->setItem( f, 2, item ); m_fleetTable->setItem( f, 2, item );
item = new QTableWidgetItem(curFleet->destination->name()); item = new QTableWidgetItem(curFleet->destination->name());
item->setFlags(Qt::ItemIsEnabled); item->setFlags(Qt::ItemIsEnabled);
m_fleetTable->setItem( f, 3, item ); m_fleetTable->setItem( f, 3, item );
item = new QTableWidgetItem(QString::number(curFleet->shipCount())); item = new QTableWidgetItem(QString::number(curFleet->shipCount()));
item->setFlags(Qt::ItemIsEnabled); item->setFlags(Qt::ItemIsEnabled);
m_fleetTable->setItem( f, 4, item ); m_fleetTable->setItem( f, 4, item );
item = new QTableWidgetItem(QString("%1") .arg(KGlobal::locale()->formatNumber(curFleet->source->killPercentage(), 3))); item = new QTableWidgetItem(QString("%1") .arg(KGlobal::locale()->formatNumber(curFleet->source->killPercentage(), 3)));
item->setFlags(Qt::ItemIsEnabled); item->setFlags(Qt::ItemIsEnabled);
m_fleetTable->setItem( f, 5, item ); m_fleetTable->setItem( f, 5, item );
item = new QTableWidgetItem(QString::number(curFleet->arrivalTurn)); item = new QTableWidgetItem(QString::number(curFleet->arrivalTurn));
item->setFlags(Qt::ItemIsEnabled); item->setFlags(Qt::ItemIsEnabled);
m_fleetTable->setItem( f, 6, item ); m_fleetTable->setItem( f, 6, item );
...@@ -133,7 +133,7 @@ AttackFleetList *FleetDlg::uncheckedFleets() { ...@@ -133,7 +133,7 @@ AttackFleetList *FleetDlg::uncheckedFleets() {
AttackFleetList *fleets = new AttackFleetList(); AttackFleetList *fleets = new AttackFleetList();
QTableWidgetItem *item; QTableWidgetItem *item;
int count = m_fleetTable->rowCount(); int count = m_fleetTable->rowCount();
for( int f = 0; f < count; ++f) { for( int f = 0; f < count; ++f) {
item = m_fleetTable->item(f,0); item = m_fleetTable->item(f,0);
if( (item->flags() & Qt::ItemIsUserCheckable) && if( (item->flags() & Qt::ItemIsUserCheckable) &&
......
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