Changeset 2ea15499285e7022db965319b587c129e5e9ad05

Show
Ignore:
Timestamp:
12/21/07 02:21:09 (9 months ago)
Author:
Jean-Baptiste Kempf <jb@videolan.org>
git-committer:
Jean-Baptiste Kempf <jb@videolan.org> 1198200069 +0000
git-parent:

[f5a08fa8831935ee37056a6832c2c6b90bf55a48]

git-author:
Jean-Baptiste Kempf <jb@videolan.org> 1198200069 +0000
Message:

Qt4 - VLM: select input from the OpenDialog?, using the existing OpenDialog? and not creating new one. :D

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/qt4/dialogs/vlm.cpp

    rf7ab4a9 r2ea1549  
    2525 
    2626#include "dialogs/vlm.hpp" 
     27#include "dialogs/open.hpp" 
    2728 
    2829#include <QString> 
     
    137138    BUTTONACT( ui.clearButton, clearWidgets() ); 
    138139    BUTTONACT( ui.saveButton, saveModifications() ); 
     140    BUTTONACT( ui.inputButton, selectInput() ); 
    139141} 
    140142 
     
    223225    vlmItemLayout->insertWidget( vlmItemCount, vlmAwidget ); 
    224226    vlmItems.append( vlmAwidget ); 
    225  
    226     /* HERE BE DRAGONS VLM REQUEST */ 
    227227} 
    228228 
     
    240240    ui.saveButton->hide(); 
    241241    ui.addButton->show(); 
     242} 
     243 
     244void VLMDialog::selectInput() 
     245{ 
     246    OpenDialog *o = OpenDialog::getInstance( this, p_intf, 0, true ); 
     247    o->exec(); 
     248    ui.inputLedit->setText( o->getMRL() ); 
    242249} 
    243250 
  • modules/gui/qt4/dialogs/vlm.hpp

    rda64a2a r2ea1549  
    100100    void showScheduleWidget( int ); 
    101101    void selectVLMItem( int ); 
     102    void selectInput(); 
    102103}; 
    103104