Explorar el Código

Fix newsdlg.cpp build:
Remove ProxyModuleInfo translation disabling hack which doesn't work anymore.
KRun::runURL -> KRun::runUrl, add third parameter.


git-svn-id: file:///var/svn/tigccpp/trunk@995 9552661e-59e3-4036-b4f2-dbe53926924f

kevinkofler hace 17 años
padre
commit
1e9adbf452
Se han modificado 1 ficheros con 3 adiciones y 11 borrados
  1. 3 11
      ktigcc/newsdlg.cpp

+ 3 - 11
ktigcc/newsdlg.cpp

@@ -58,15 +58,6 @@ class ColoredListBoxText : public Q3ListBoxText {
     QColor color;
 };
 
-// This hack overrides the comment so it doesn't get translated while
-// everything else doesn't.
-class ProxyModuleInfo : public KCModuleInfo {
-  public:
-    ProxyModuleInfo() : KCModuleInfo("proxy") {
-      setComment("Configure the proxy servers used");
-    }
-};
-
 bool NewsDialog::loadNews()
 {
   QString tmpFile;
@@ -130,7 +121,7 @@ bool NewsDialog::loadNews()
 
 void NewsDialog::proxySettingsButton_clicked()
 {
-  ProxyModuleInfo proxyModuleInfo;
+  KCModuleInfo proxyModuleInfo("proxy");
   if (proxyModuleInfo.moduleName().isNull())
     KMessageBox::error(this,"This feature requires kdebase.");
   else {
@@ -147,7 +138,8 @@ void NewsDialog::refreshButton_clicked()
 
 void NewsDialog::visitButton_clicked()
 {
-  KRun::runURL(KUrl("http://tigcc.ticalc.org/linux/"),"text/html");
+  KRun::runUrl(KUrl("http://tigcc.ticalc.org/linux/"),"text/html",
+               static_cast<QWidget *>(parent()));
 }
 
 /*