Commit 5db9e19e authored by heretik's avatar heretik
Browse files

remove title bar of dockwidget

parent e7aec44b
......@@ -24,14 +24,22 @@ MainWindow::MainWindow( QWidget *parent )
{
// prepare qt things
ui_ptr_->setupUi( this );
// set dock widgets
setTabPosition( Qt::BottomDockWidgetArea, QTabWidget::West );
tabifyDockWidget( ui_ptr_->dockWidget_compilation, ui_ptr_->dockWidget_io );
ui_ptr_->dockWidget_compilation->setTitleBarWidget( new QWidget{} );
ui_ptr_->dockWidget_io->setTitleBarWidget( new QWidget{} );
// set process
connect( &process_, &QProcess::readyReadStandardOutput, this, &MainWindow::update_std_out );
connect( &process_, &QProcess::readyReadStandardError, this, &MainWindow::update_std_err );
connect( &process_, SIGNAL(finished(int)), this, SLOT(finished(int)));
// event filter for tooltip
ui_ptr_->textEdit_code->installEventFilter( this );
// set syntax highlighter
syntax_highlighter_ptr_ = std::make_unique<SyntaxHighlighter>( ui_ptr_->textEdit_code->document() );
// restore settings
......
......@@ -24,46 +24,46 @@
<translation></translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.ui" line="88"/>
<location filename="../src/prototypator/mainwindow.ui" line="91"/>
<source>Compilation</source>
<translation></translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.ui" line="153"/>
<location filename="../src/prototypator/mainwindow.ui" line="156"/>
<source>Input/output</source>
<translation></translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.cpp" line="48"/>
<location filename="../src/prototypator/mainwindow.cpp" line="56"/>
<source>testing presence of cmake...
</source>
<translation></translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.cpp" line="52"/>
<location filename="../src/prototypator/mainwindow.cpp" line="60"/>
<source>running &apos;cmake&apos;...
</source>
<translation></translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.cpp" line="56"/>
<location filename="../src/prototypator/mainwindow.cpp" line="64"/>
<source>running &apos;make&apos;...
</source>
<translation></translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.cpp" line="60"/>
<location filename="../src/prototypator/mainwindow.cpp" line="68"/>
<source>running application...
</source>
<translation></translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.cpp" line="112"/>
<location filename="../src/prototypator/mainwindow.cpp" line="120"/>
<source> exited with code </source>
<translation></translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.cpp" line="219"/>
<location filename="../src/prototypator/mainwindow.cpp" line="227"/>
<source>failed to start &apos;</source>
<translation></translation>
</message>
......
......@@ -24,50 +24,50 @@
<translation>Ctrl+D</translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.ui" line="88"/>
<location filename="../src/prototypator/mainwindow.ui" line="91"/>
<source>Compilation</source>
<translation>Compilation</translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.ui" line="153"/>
<location filename="../src/prototypator/mainwindow.ui" line="156"/>
<source>Input/output</source>
<translation>Entrée/sortie</translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.cpp" line="48"/>
<location filename="../src/prototypator/mainwindow.cpp" line="56"/>
<source>testing presence of cmake...
</source>
<translation>test de la présence de cmake...
</translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.cpp" line="52"/>
<location filename="../src/prototypator/mainwindow.cpp" line="60"/>
<source>running &apos;cmake&apos;...
</source>
<translation>démarrage de &apos;cmake&apos;...
</translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.cpp" line="56"/>
<location filename="../src/prototypator/mainwindow.cpp" line="64"/>
<source>running &apos;make&apos;...
</source>
<translation>démarrage de &apos;make&apos;...
</translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.cpp" line="60"/>
<location filename="../src/prototypator/mainwindow.cpp" line="68"/>
<source>running application...
</source>
<translation>démarrage de l&apos;application...
</translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.cpp" line="112"/>
<location filename="../src/prototypator/mainwindow.cpp" line="120"/>
<source> exited with code </source>
<translation> s&apos;est terminé avec le code </translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.cpp" line="219"/>
<location filename="../src/prototypator/mainwindow.cpp" line="227"/>
<source>failed to start &apos;</source>
<translation>impossible de démarrer &apos;</translation>
</message>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment