Skip to content

Commit

Permalink
change browse file/directory icon from SP_FileDialogStart to semantic…
Browse files Browse the repository at this point in the history
…ally correct SP_DialogOpenButton
  • Loading branch information
Garux committed Aug 21, 2023
1 parent b608dc9 commit 22f0172
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contrib/prtview/LoadPortalFileDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ bool DoLoadPortalFileDialog(){
auto vbox = new QVBoxLayout( &dialog );
{
vbox->addWidget( line = new QLineEdit );
auto button = line->addAction( QApplication::style()->standardIcon( QStyle::SP_FileDialogStart ), QLineEdit::ActionPosition::TrailingPosition );
auto button = line->addAction( QApplication::style()->standardIcon( QStyle::SP_DialogOpenButton ), QLineEdit::ActionPosition::TrailingPosition );
QObject::connect( button, &QAction::triggered, [line](){
if ( const char* filename = GlobalRadiant().m_pfnFileDialog( g_pRadiantWnd, true, "Locate portal (.prt) file", line->text().toLatin1().constData(), 0, true, false, false ) )
line->setText( filename );
Expand Down
2 changes: 1 addition & 1 deletion libs/gtkutil/dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ RadioHBox RadioHBox_new( StringArrayRange names ){

PathEntry PathEntry_new(){
auto entry = new QLineEdit;
auto button = entry->addAction( QApplication::style()->standardIcon( QStyle::SP_FileDialogStart ), QLineEdit::ActionPosition::TrailingPosition );
auto button = entry->addAction( QApplication::style()->standardIcon( QStyle::SP_DialogOpenButton ), QLineEdit::ActionPosition::TrailingPosition );
return PathEntry( entry, button );
}

Expand Down
2 changes: 1 addition & 1 deletion radiant/entityinspector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ class ModelAttribute final : public EntityAttribute
ModelAttribute( const char* key ) :
m_key( key ),
m_entry( new NonModalEntry( ApplyCaller( *this ), UpdateCaller( *this ) ) ){
auto button = m_entry->addAction( QApplication::style()->standardIcon( QStyle::SP_FileDialogStart ), QLineEdit::ActionPosition::TrailingPosition );
auto button = m_entry->addAction( QApplication::style()->standardIcon( QStyle::SP_DialogOpenButton ), QLineEdit::ActionPosition::TrailingPosition );
QObject::connect( button, &QAction::triggered, [this](){ browse(); } );
}
void release() override {
Expand Down

0 comments on commit 22f0172

Please sign in to comment.