Commit e239dc84 authored by Laurent Montel's avatar Laurent Montel 😁

Remove kdelibs4support

parent f4285a3e
...@@ -174,7 +174,7 @@ FleetDlg::update() ...@@ -174,7 +174,7 @@ FleetDlg::update()
// number comparison. But as all values have the same amount of // number comparison. But as all values have the same amount of
// characters/digits, sorting by string actually works. // characters/digits, sorting by string actually works.
item = new QTableWidgetItem(QString("%1").arg(KGlobal::locale()->formatNumber(curFleet->source->killPercentage(), 3))); item = new QTableWidgetItem(QString("%1").arg(KLocale::global()->formatNumber(curFleet->source->killPercentage(), 3)));
item->setTextAlignment(Qt::AlignRight | Qt::AlignVCenter); item->setTextAlignment(Qt::AlignRight | Qt::AlignVCenter);
item->setFlags(Qt::ItemIsEnabled); item->setFlags(Qt::ItemIsEnabled);
m_fleetTable->setItem(row, 5, item); m_fleetTable->setItem(row, 5, item);
......
...@@ -399,7 +399,7 @@ NewGameDlg::updateOwnerCB() ...@@ -399,7 +399,7 @@ NewGameDlg::updateOwnerCB()
void void
NewGameDlg::init() NewGameDlg::init()
{ {
KConfigGroup config = KGlobal::config()->group("Game"); KConfigGroup config = KSharedConfig::openConfig()->group("Game");
int nrOfPlayers = config.readEntry("NrOfPlayers",0); int nrOfPlayers = config.readEntry("NrOfPlayers",0);
if (nrOfPlayers < 2) if (nrOfPlayers < 2)
...@@ -563,7 +563,7 @@ NewGameDlg::slotNewProduction(int value) ...@@ -563,7 +563,7 @@ NewGameDlg::slotNewProduction(int value)
void void
NewGameDlg::save() NewGameDlg::save()
{ {
KConfigGroup config = KGlobal::config()->group("Game"); KConfigGroup config = KSharedConfig::openConfig()->group("Game");
config.writeEntry("NrOfPlanets", m_w->neutralPlanetsSB->value()); config.writeEntry("NrOfPlanets", m_w->neutralPlanetsSB->value());
config.writeEntry("SizeWidth", m_w->widthSB->value()); config.writeEntry("SizeWidth", m_w->widthSB->value());
......
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