Commit 9fc5f2b6 authored by Ludovic Fauvet's avatar Ludovic Fauvet

Adjust the size of the cursor to the height of the tracks

This commit contains some crappy-things, such as a call to the mainloop
during a layout re-organisation and should be removed ASAP.
parent bab84c31
......@@ -36,7 +36,7 @@ Instance::Instance()
"--no-skip-frames",
// "--intf", "dummy",
//"--no-audio",
//"--plugin-path", VLC_TREE "/modules",
"--plugin-path", "/home/etix/dev/vlc/build/modules",
"--disable-screensaver",
"--ignore-config", //Don't use VLC's config files
};
......
......@@ -108,11 +108,13 @@ void TracksView::addVideoTrack()
track->setPreferredHeight( m_tracksHeight );
track->setContentsMargins( 0, 0, 0, 0 );
m_layout->insertItem( 0, track );
QApplication::processEvents(); //FIXME This is a bit hackish
m_numVideoTrack++;
m_videoTracksCounter--;
m_scene->invalidate();
//FIXME this should maybe go elsewhere
setSceneRect( m_layout->contentsRect().adjusted( 0, 0, 100, 100 ) );
m_cursorLine->setHeight( m_layout->contentsRect().height() );
}
void TracksView::addAudioTrack()
......@@ -122,10 +124,12 @@ void TracksView::addAudioTrack()
track->setPreferredHeight( m_tracksHeight );
track->setContentsMargins( 0, 0, 0, 0 );
m_layout->insertItem( 1000, track );
QApplication::processEvents(); //FIXME This is a bit hackish
m_numAudioTrack++;
m_scene->invalidate();
//FIXME this should maybe go elsewhere
setSceneRect( m_layout->contentsRect().adjusted( 0, 0, 100, 100 ) );
m_cursorLine->setHeight( m_layout->contentsRect().height() );
}
void TracksView::dragEnterEvent( QDragEnterEvent* event )
......
......@@ -30,6 +30,7 @@
#include <QGraphicsWidget>
#include <QWheelEvent>
#include <QGraphicsSceneDragDropEvent>
#include <QApplication>
#include "Media.h"
#include "GraphicsCursorItem.h"
#include "MainWorkflow.h"
......
#!/bin/sh
export LD_LIBRARY_PATH=/home/etix/dev/vlc/build/src/.libs
exec bin/vlmc "$@"
......@@ -117,13 +117,15 @@ INCLUDEPATH += src/LibVLCpp \
src/metadata \
src/commands \
src/Workflow \
src
src \
/home/etix/dev/vlc/include
# QMAKE_CFLAGS+=-pg
# QMAKE_CXXFLAGS+=-pg
# QMAKE_LFLAGS+=-pg
LIBS = -L/usr/local/lib \
-lvlc
-lvlc \
-L/home/etix/dev/vlc/build/src/.libs
SUBDIRS += modules
CODECFORTR = UTF-8
include(locale.pri)
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