Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Remove the "port" selection option from the EasyPBI new module dialog…
Browse files Browse the repository at this point in the history
…. Apparently I missed this when removing the rest of the port options in the conversion to PBING.
  • Loading branch information
Ken Moore committed Jun 6, 2014
1 parent ccc0b58 commit 92e14ae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
8 changes: 4 additions & 4 deletions src-qt4/EasyPBI/newModuleDialog.cpp
Expand Up @@ -16,9 +16,9 @@ NewModuleDialog::NewModuleDialog(QWidget *parent, QString portsdir) :
portsDir=portsdir;
if(!portsDir.isEmpty() && !portsDir.endsWith("/")){ portsDir.append("/"); }
//Setup the dialog icons
ui->push_port->setIcon(Backend::icon("load"));
//ui->push_port->setIcon(Backend::icon("load"));
ui->push_icon->setIcon(Backend::icon("file"));
if(portsDir.isEmpty()){ ui->push_port->setEnabled(false); }
//if(portsDir.isEmpty()){ ui->push_port->setEnabled(false); }
}

NewModuleDialog::~NewModuleDialog(){
Expand All @@ -44,13 +44,13 @@ void NewModuleDialog::on_buttonBox_rejected(){
this->close();
}

void NewModuleDialog::on_push_port_clicked(){
/*void NewModuleDialog::on_push_port_clicked(){
QString portSel = QFileDialog::getExistingDirectory(this, tr("Select Port"), portsDir);
if(!portSel.isEmpty()){
ui->line_port->setText(portSel.remove(portsDir));
isPort=true;
}
}
}*/

void NewModuleDialog::on_push_package_clicked(){
pkgSelect dlg(this);
Expand Down
2 changes: 1 addition & 1 deletion src-qt4/EasyPBI/newModuleDialog.h
Expand Up @@ -33,7 +33,7 @@ class NewModuleDialog : public QDialog
private slots:
void on_buttonBox_accepted();
void on_buttonBox_rejected();
void on_push_port_clicked();
//void on_push_port_clicked();
void on_push_package_clicked();
void on_push_icon_clicked();

Expand Down
16 changes: 3 additions & 13 deletions src-qt4/EasyPBI/newModuleDialog.ui
Expand Up @@ -20,7 +20,7 @@
<item row="1" column="0">
<widget class="QLabel" name="label_port">
<property name="text">
<string>FreeBSD Port</string>
<string>FreeBSD Package</string>
</property>
</widget>
</item>
Expand All @@ -33,20 +33,10 @@
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="push_port">
<property name="text">
<string>Port</string>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextBesideIcon</enum>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="push_package">
<property name="text">
<string>Pkg</string>
<string>Find</string>
</property>
<property name="icon">
<iconset resource="EasyPBI.qrc">
Expand Down Expand Up @@ -116,7 +106,7 @@
<item row="3" column="1">
<widget class="QCheckBox" name="check_quick">
<property name="text">
<string>Quick Module (Skip auto-setting module values)</string>
<string>Quick Module (Skip value auto-generation)</string>
</property>
</widget>
</item>
Expand Down

0 comments on commit 92e14ae

Please sign in to comment.