Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent af6e6abd16
commit 7dba2f0cd3

@ -353,7 +353,7 @@ int MainWindow::getParenthesesLevel(const TQString &str)
void MainWindow::loadConfig() void MainWindow::loadConfig()
{ {
{ {
KConfigGroup config(KGlobal::config(), "Settings"); KConfigGroup config(TDEGlobal::config(), "Settings");
TQString mode = config.readEntry("Trigonometric mode", "Degrees"); TQString mode = config.readEntry("Trigonometric mode", "Degrees");
if(mode == "Degrees") { if(mode == "Degrees") {
@ -377,7 +377,7 @@ void MainWindow::loadConfig()
} }
{ {
KConfigGroup config(KGlobal::config(), "Variables"); KConfigGroup config(TDEGlobal::config(), "Variables");
TQStringList list = config.readListEntry("Saved Variables"); TQStringList list = config.readListEntry("Saved Variables");
for(TQStringList::ConstIterator it = list.begin(); it != list.end(); ++it) { for(TQStringList::ConstIterator it = list.begin(); it != list.end(); ++it) {
@ -392,7 +392,7 @@ void MainWindow::loadConfig()
} }
{ {
KConfigGroup config(KGlobal::config(), "GUI"); KConfigGroup config(TDEGlobal::config(), "GUI");
bool showHistory = config.readBoolEntry("ShowHistory", true); bool showHistory = config.readBoolEntry("ShowHistory", true);
action<KToggleAction>("toggleHistoryList")->setChecked(showHistory); action<KToggleAction>("toggleHistoryList")->setChecked(showHistory);
@ -415,7 +415,7 @@ void MainWindow::loadConfig()
} }
{ {
KConfigGroup config(KGlobal::config(), "Functions"); KConfigGroup config(TDEGlobal::config(), "Functions");
TQStringList fnList = config.readListEntry("FunctionList"); TQStringList fnList = config.readListEntry("FunctionList");
for(TQStringList::ConstIterator it = fnList.begin(); it != fnList.end(); ++it) for(TQStringList::ConstIterator it = fnList.begin(); it != fnList.end(); ++it)
@ -428,7 +428,7 @@ void MainWindow::loadConfig()
void MainWindow::saveConfig() void MainWindow::saveConfig()
{ {
{ {
KConfigGroup config(KGlobal::config(), "Settings"); KConfigGroup config(TDEGlobal::config(), "Settings");
config.writeEntry("Trigonometric mode", config.writeEntry("Trigonometric mode",
trigMode() == Abakus::Degrees trigMode() == Abakus::Degrees
@ -440,7 +440,7 @@ void MainWindow::saveConfig()
} }
{ {
KConfigGroup config(KGlobal::config(), "Variables"); KConfigGroup config(TDEGlobal::config(), "Variables");
TQStringList list; TQStringList list;
TQStringList values = ValueManager::instance()->valueNames(); TQStringList values = ValueManager::instance()->valueNames();
@ -462,7 +462,7 @@ void MainWindow::saveConfig()
} }
{ {
KConfigGroup config(KGlobal::config(), "GUI"); KConfigGroup config(TDEGlobal::config(), "GUI");
bool inCompactMode = action<KToggleAction>("toggleCompactMode")->isChecked(); bool inCompactMode = action<KToggleAction>("toggleCompactMode")->isChecked();
config.writeEntry("InCompactMode", inCompactMode); config.writeEntry("InCompactMode", inCompactMode);
@ -480,7 +480,7 @@ void MainWindow::saveConfig()
} }
{ {
KConfigGroup config(KGlobal::config(), "Functions"); KConfigGroup config(TDEGlobal::config(), "Functions");
FunctionManager *manager = FunctionManager::instance(); FunctionManager *manager = FunctionManager::instance();

@ -38,7 +38,7 @@ TQString convertToString(const mpfr_ptr &number)
TQRegExp zeroKiller ("0*$"); TQRegExp zeroKiller ("0*$");
mp_exp_t exp; mp_exp_t exp;
int desiredPrecision = Abakus::m_prec; int desiredPrecision = Abakus::m_prec;
TQString decimalSymbol = KGlobal::locale()->decimalSymbol(); TQString decimalSymbol = TDEGlobal::locale()->decimalSymbol();
if(desiredPrecision < 0) if(desiredPrecision < 0)
desiredPrecision = 8; desiredPrecision = 8;
@ -175,7 +175,7 @@ namespace Abakus
TQString convertToString(const HNumber &num) TQString convertToString(const HNumber &num)
{ {
TQString str = HMath::formatGenString(num, m_prec); TQString str = HMath::formatGenString(num, m_prec);
TQString decimalSymbol = KGlobal::locale()->decimalSymbol(); TQString decimalSymbol = TDEGlobal::locale()->decimalSymbol();
str.replace('.', decimalSymbol); str.replace('.', decimalSymbol);
TQStringList parts = TQStringList::split("e", str); TQStringList parts = TQStringList::split("e", str);

@ -315,7 +315,7 @@ TERM: VALUE { $$ = $1; }
VALUE: NUMBER { $$ = $1; } VALUE: NUMBER { $$ = $1; }
NUMBER: NUM { NUMBER: NUM {
KLocale *locale = KGlobal::locale(); KLocale *locale = TDEGlobal::locale();
QChar decimal = locale->decimalSymbol()[0]; QChar decimal = locale->decimalSymbol()[0];
// Replace current decimal separator with US Decimal separator to be // Replace current decimal separator with US Decimal separator to be

Loading…
Cancel
Save