diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-19 11:57:02 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-19 11:57:02 -0600 |
commit | a51cd9949c4e6c726a84a61de3cfadd30cefb5c7 (patch) | |
tree | a65321bcfdb90583bcc7ef3a90fa357f6632e54c /krandr | |
parent | 984c25aa6969e55896e9a13c8e7f7b8a58991a4e (diff) | |
download | tdelibs-a51cd9949c4e6c726a84a61de3cfadd30cefb5c7.tar.gz tdelibs-a51cd9949c4e6c726a84a61de3cfadd30cefb5c7.zip |
Remove additional unneeded tq method conversions
Diffstat (limited to 'krandr')
-rw-r--r-- | krandr/libkrandr.cc | 6 | ||||
-rw-r--r-- | krandr/randr.cpp | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/krandr/libkrandr.cc b/krandr/libkrandr.cc index 2920c70cd..b4f21e5fe 100644 --- a/krandr/libkrandr.cc +++ b/krandr/libkrandr.cc @@ -55,7 +55,7 @@ unsigned int reverse_bits(register unsigned int x) TQString exec(const char * cmd) { TQString bashcommand = cmd; bashcommand = bashcommand.replace("\"", "\\\""); - bashcommand = TQString("/bin/bash -c \"%1\" 2>&1").tqarg(bashcommand); + bashcommand = TQString("/bin/bash -c \"%1\" 2>&1").arg(bashcommand); FILE* pipe = popen(bashcommand.ascii(), "r"); if (!pipe) return "ERROR"; char buffer[128]; @@ -1071,11 +1071,11 @@ TQPtrList<SingleScreenData> KRandrSimpleAPI::readCurrentDisplayConfiguration() { if (cur_screen) { screendata->screen_connected = true; for (int j = 0; j < cur_screen->numSizes(); j++) { - screendata->resolutions.append(i18n("%1 x %2").tqarg(cur_screen->pixelSize(j).width()).tqarg(cur_screen->pixelSize(j).height())); + screendata->resolutions.append(i18n("%1 x %2").arg(cur_screen->pixelSize(j).width()).arg(cur_screen->pixelSize(j).height())); } screendata->current_resolution_index = 0; if (current_crtc) { - screendata->current_resolution_index = screendata->resolutions.findIndex(i18n("%1 x %2").tqarg(current_crtc->info->width).tqarg(current_crtc->info->height)); + screendata->current_resolution_index = screendata->resolutions.findIndex(i18n("%1 x %2").arg(current_crtc->info->width).arg(current_crtc->info->height)); } if (screendata->current_resolution_index < 0) { screendata->current_resolution_index = cur_screen->proposedSize(); diff --git a/krandr/randr.cpp b/krandr/randr.cpp index 85f360f52..bd57fdc9f 100644 --- a/krandr/randr.cpp +++ b/krandr/randr.cpp @@ -691,7 +691,7 @@ const TQString& RandRDisplay::version() const void RandRDisplay::setCurrentScreen(int index) { m_currentScreenIndex = index; - m_currentScreen = m_screens.tqat(m_currentScreenIndex); + m_currentScreen = m_screens.at(m_currentScreenIndex); Q_ASSERT(m_currentScreen); } @@ -719,7 +719,7 @@ int RandRDisplay::numScreens() const RandRScreen* RandRDisplay::screen(int index) { - return m_screens.tqat(index); + return m_screens.at(index); } RandRScreen* RandRDisplay::currentScreen() |