Namespace cleanup

This commit is contained in:
Dan Paulat 2021-08-08 08:24:40 -05:00
parent c22db501b3
commit 5a97d99a34
20 changed files with 88 additions and 46 deletions

View file

@ -9,8 +9,8 @@ int main(int argc, char* argv[])
boost::log::core::get()->set_filter(boost::log::trivial::severity >=
boost::log::trivial::debug);
QApplication a(argc, argv);
scwx::qt::MainWindow w;
QApplication a(argc, argv);
scwx::qt::main::MainWindow w;
w.show();
return a.exec();
}

View file

@ -7,6 +7,8 @@ namespace scwx
{
namespace qt
{
namespace main
{
MainWindow::MainWindow(QWidget* parent) :
QMainWindow(parent), ui(new Ui::MainWindow)
@ -17,7 +19,7 @@ MainWindow::MainWindow(QWidget* parent) :
settings.setCacheDatabasePath("/tmp/mbgl-cache.db");
settings.setCacheDatabaseMaximumSize(20 * 1024 * 1024);
ui->centralwidget->layout()->addWidget(new MapWidget(settings));
ui->centralwidget->layout()->addWidget(new map::MapWidget(settings));
}
MainWindow::~MainWindow()
@ -25,5 +27,6 @@ MainWindow::~MainWindow()
delete ui;
}
} // namespace main
} // namespace qt
} // namespace scwx

View file

@ -13,6 +13,8 @@ namespace scwx
{
namespace qt
{
namespace main
{
class MainWindow : public QMainWindow
{
@ -26,5 +28,6 @@ private:
Ui::MainWindow* ui;
};
} // namespace main
} // namespace qt
} // namespace scwx