StelGuiBase.cpp   StelGuiBase.cpp 
skipping to change at line 21 skipping to change at line 21
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#include "StelGuiBase.hpp" #include "StelGuiBase.hpp"
#include "StelAppGraphicsWidget.hpp" #include "StelMainView.hpp"
#include "StelTranslator.hpp" #include "StelTranslator.hpp"
#include <QAction> #include <QAction>
StelGuiBase::StelGuiBase() : stelAppGraphicsWidget(NULL) StelGuiBase::StelGuiBase()
{ {
} }
void StelGuiBase::init(QGraphicsWidget* atopLevelGraphicsWidget, StelAppGra phicsWidget* astelAppGraphicsWidget) void StelGuiBase::init(QGraphicsWidget *atopLevelGraphicsWidget)
{ {
Q_UNUSED(atopLevelGraphicsWidget); Q_UNUSED(atopLevelGraphicsWidget);
stelAppGraphicsWidget = astelAppGraphicsWidget;
}
void StelGuiBase::updateI18n()
{
// Translate all action texts
foreach (QObject* obj, stelAppGraphicsWidget->children())
{
QAction* a = qobject_cast<QAction*>(obj);
if (a)
{
const QString& englishText = a->property("englishTex
t").toString();
if (!englishText.isEmpty())
{
a->setText(q_(englishText));
}
}
}
} }
 End of changes. 4 change blocks. 
22 lines changed or deleted 3 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/