Changeset 38


Ignore:
Timestamp:
01/06/08 16:48:00 (4 years ago)
Author:
roeland
Message:

Quiting works trough file->quit

Location:
gui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • gui/main_window.cpp

    r37 r38  
    99MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) 
    1010{ 
    11     QSettings settings; 
    1211    setupUi(this); 
    1312 
     
    6766    connect(libraryTreeView, SIGNAL(activated(const QModelIndex &)), this, SLOT(libraryItemActivated(const QModelIndex &))); 
    6867    connect(addToPlaylistPushButton, SIGNAL(clicked(bool)), this, SLOT(addToPlaylistButtonActivated())); 
     68    connect(action_Quit, SIGNAL(triggered()), qApp, SLOT(quit())); 
    6969 
    7070    // Timer 
  • gui/main_window.h

    r35 r38  
    2727 
    2828    private: 
     29        QSettings settings; 
    2930        MPDConnection mpd; 
    3031        MPDStatus mpd_status; 
  • gui/main_window.ui

    r28 r38  
    434434 </widget> 
    435435 <resources/> 
    436  <connections> 
    437   <connection> 
    438    <sender>action_Quit</sender> 
    439    <signal>triggered()</signal> 
    440    <receiver>MainWindow</receiver> 
    441    <slot>close()</slot> 
    442    <hints> 
    443     <hint type="sourcelabel" > 
    444      <x>-1</x> 
    445      <y>-1</y> 
    446     </hint> 
    447     <hint type="destinationlabel" > 
    448      <x>352</x> 
    449      <y>299</y> 
    450     </hint> 
    451    </hints> 
    452   </connection> 
    453  </connections> 
     436 <connections/> 
    454437</ui> 
Note: See TracChangeset for help on using the changeset viewer.