~zeal-developers/zeal/master

« back to all changes in this revision

Viewing changes to src/ui/mainwindow.cpp

  • Committer: Oleg Shparber
  • Date: 2015-12-04 02:38:52 UTC
  • Revision ID: git-v1:e90fdd1cf28db91d2d639f64ac04494720c595be
ui: Remove C-style cast

Show diffs side-by-side

added added

removed removed

Lines of Context:
302
302
    connect(m_tabBar, &QTabBar::currentChanged, this, &MainWindow::goToTab);
303
303
    connect(m_tabBar, &QTabBar::tabCloseRequested, this, &MainWindow::closeTab);
304
304
 
305
 
    ((QHBoxLayout *)ui->tabBarFrame->layout())->insertWidget(2, m_tabBar, 0, Qt::AlignBottom);
 
305
    {
 
306
        QHBoxLayout *layout = reinterpret_cast<QHBoxLayout *>(ui->tabBarFrame->layout());
 
307
        layout->insertWidget(2, m_tabBar, 0, Qt::AlignBottom);
 
308
    }
306
309
 
307
310
    connect(ui->openUrlButton, &QPushButton::clicked, [this]() {
308
311
        const QUrl url(ui->webView->page()->history()->currentItem().url());