Stop SplitByChar also lowercasing the entire string. Fixes
bug #581.
It's weird that a function with this name would lowercase the whole string.
Nemo and I have checked the history and code for any justifications of the
lowercasing but we found none.
I have checked in the code if anything actually depends on SplitByChar also
lowercasing the string but I found nothing.
It would surprise me since it's not obvious from the name IMO is bad
coding practice anyway.
Bug 581 is fixed by this because cLocale was (incorrectly) lowercased,
which broke locale names like pt_BR to pt_br.
#ifndef DRAWMAPWIDGET_H
#define DRAWMAPWIDGET_H
#include <QWidget>
#include <QHBoxLayout>
#include <QPushButton>
#include <QGraphicsView>
#include <QApplication>
#include "qaspectratiolayout.h"
#include "drawmapscene.h"
namespace Ui {
class Ui_DrawMapWidget
{
public:
QGraphicsView *graphicsView;
QPushButton *pbUndo;
void setupUi(QWidget *drawMapWidget)
{
QAspectRatioLayout * arLayout = new QAspectRatioLayout(drawMapWidget);
arLayout->setMargin(0);
graphicsView = new QGraphicsView(drawMapWidget);
arLayout->addWidget(graphicsView);
retranslateUi(drawMapWidget);
QMetaObject::connectSlotsByName(drawMapWidget);
} // setupUi
void retranslateUi(QWidget *drawMapWidget)
{
Q_UNUSED(drawMapWidget);
} // retranslateUi
};
class DrawMapWidget: public Ui_DrawMapWidget {};
}
class DrawMapWidget : public QWidget
{
Q_OBJECT
public:
explicit DrawMapWidget(QWidget *parent = 0);
~DrawMapWidget();
void setScene(DrawMapScene * scene);
protected:
void changeEvent(QEvent *e);
virtual void resizeEvent(QResizeEvent * event);
private:
Ui::DrawMapWidget *ui;
};
#endif // DRAWMAPWIDGET_H