Changeset 8262
- Timestamp:
- Apr 21, 2009, 1:00:17 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gtk/details.c
r8258 r8262 489 489 G_CALLBACK( onPeerViewQueryTooltip ), NULL ); 490 490 #endif 491 gtk_widget_set_size_request( v, 550, 0 );492 491 g_object_unref( G_OBJECT( m ) ); 493 492 g_signal_connect( v, "button-release-event", … … 1053 1052 row = 0; 1054 1053 t = hig_workarea_create( ); 1055 hig_workarea_add_section_title( t, &row, _( "Speed Limits" ) );1054 hig_workarea_add_section_title( t, &row, _( "Speed" ) ); 1056 1055 1057 1056 b = tr_torrentUsesSessionLimits( tor ); -
trunk/qt/about.cc
r8188 r8262 11 11 */ 12 12 13 #include <QAbstractButton> 14 #include <QMovie> 13 #include <QDialogButtonBox> 14 #include <QFont> 15 #include <QLabel> 16 #include <QPixmap> 17 #include <QVBoxLayout> 18 #include <QWidget> 15 19 16 20 #include <libtransmission/transmission.h> … … 19 23 #include "about.h" 20 24 21 namespace22 {23 QMovie * movie;24 }25 26 25 AboutDialog :: AboutDialog( QWidget * parent ): 27 26 QDialog( parent, Qt::Dialog ) 28 27 { 29 ui.setupUi( this ); 28 QLabel * l; 29 QVBoxLayout * v = new QVBoxLayout( this ); 30 setWindowTitle( tr( "About Transmission" ) ); 30 31 31 ui.label->setText( "Transmission " LONG_VERSION_STRING ); 32 connect( ui.buttonBox, SIGNAL(clicked(QAbstractButton*)), this, SLOT(hide())); 33 movie = new QMovie( ":/icons/dance.gif" ); 34 connect( movie, SIGNAL(frameChanged(int)), this, SLOT(onFrameChanged())); 35 movie->start( ); 32 l = new QLabel; 33 l->setPixmap( QPixmap( ":/icons/transmission-48.png" ) ); 34 l->setAlignment( Qt::AlignCenter ); 35 v->addWidget( l ); 36 37 QFont f( font( ) ); 38 f.setWeight( QFont::Bold ); 39 f.setPointSize( int( f.pointSize( ) * 1.2 ) ); 40 l = new QLabel( "<big>Transmission " LONG_VERSION_STRING "</big>" ); 41 l->setAlignment( Qt::AlignCenter ); 42 l->setFont( f ); 43 l->setMargin( 8 ); 44 v->addWidget( l ); 45 46 l = new QLabel( tr( "A fast and easy BitTorrent client" ) ); 47 l->setStyleSheet( "text-align: center" ); 48 l->setAlignment( Qt::AlignCenter ); 49 v->addWidget( l ); 50 51 l = new QLabel( tr( "Copyright 2005-2009, the Transmission project" ) ); 52 l->setAlignment( Qt::AlignCenter ); 53 v->addWidget( l ); 54 55 l = new QLabel( "<a href=\"http://www.transmissionbt.com/\">http://www.transmissionbt.com/</a>" ); 56 l->setOpenExternalLinks( true ); 57 l->setAlignment( Qt::AlignCenter ); 58 v->addWidget( l ); 59 60 v->addSpacing( 10 ); 61 62 QDialogButtonBox * box = new QDialogButtonBox; 63 box->addButton( QDialogButtonBox::Close ); 64 box->setCenterButtons( true ); 65 v->addWidget( box ); 66 connect( box, SIGNAL(rejected()), this, SLOT(hide()) ); 36 67 } 37 38 AboutDialog :: ~AboutDialog( )39 {40 }41 42 void43 AboutDialog :: onFrameChanged( )44 {45 ui.aboutLogo->setPixmap( movie->currentPixmap( ) );46 } -
trunk/qt/about.h
r8188 r8262 14 14 #define ABOUT_DIALOG_H 15 15 16 class QAbstractButton;17 class QIcon;18 16 #include <QDialog> 19 20 #include "ui_about.h"21 17 22 18 class AboutDialog: public QDialog … … 24 20 Q_OBJECT 25 21 26 private:27 Ui_AboutDialog ui;28 29 private slots:30 void onFrameChanged( );31 32 22 public: 33 23 AboutDialog( QWidget * parent = 0 ); 34 ~AboutDialog( ) ;24 ~AboutDialog( ) { } 35 25 36 26 }; -
trunk/qt/mainwin.cc
r8255 r8262 17 17 #include <QDesktopServices> 18 18 #include <QFileDialog> 19 #include <QLabel> 19 20 #include <QSize> 20 21 #include <QStyle> -
trunk/qt/prefs-dialog.cc
r8255 r8262 471 471 hig->addSectionDivider( ); 472 472 hig->addSectionTitle( tr( "Privacy" ) ); 473 hig->addRow( tr( " Encryption &mode:" ), box );473 hig->addRow( tr( "&Encryption mode:" ), box ); 474 474 hig->addWideControl( checkBoxNew( tr( "Use peer e&xchange" ), Prefs::PEX_ENABLED ) ); 475 475 -
trunk/qt/qtr.pro
r8237 r8262 21 21 TRANSLATIONS += transmission_en.ts 22 22 23 FORMS += mainwin.ui about.ui23 FORMS += mainwin.ui 24 24 RESOURCES += application.qrc 25 25 SOURCES += about.cc app.cc details.cc file-tree.cc filters.cc hig.cc \
Note: See TracChangeset
for help on using the changeset viewer.