Skip to content

Commit

Permalink
delete map dialog copy btn that was un-implemented. (#1384)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteven4 authored Nov 16, 2024
1 parent 9f57b0f commit c8fc044
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 58 deletions.
9 changes: 0 additions & 9 deletions gui/gmapdlg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,6 @@ GMapDialog::GMapDialog(QWidget* parent, const QString& gpxFileName, QPlainTextEd
ui_.treeView->setContextMenuPolicy(Qt::CustomContextMenu);
connect(ui_.treeView, &QWidget::customContextMenuRequested,
this, &GMapDialog::showContextMenu);

connect(ui_.copyButton, &QAbstractButton::clicked, this, &GMapDialog::copyButtonClickedX);

ui_.copyButton->hide(); // Hide for now, not working
}

//-------------------------------------------------------------------------
Expand Down Expand Up @@ -577,8 +573,3 @@ void GMapDialog::showContextMenu(const QPoint& pt)
} else {
}
}
//------------------------------------------------------------------------
void GMapDialog::copyButtonClickedX()
{

}
1 change: 0 additions & 1 deletion gui/gmapdlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ private slots:
void routeClickedX(int i);
void treeDoubleClicked(const QModelIndex& idx);
void selectionChangedX(const QItemSelection&, const QItemSelection&);
void copyButtonClickedX();
void showContextMenu(const QPoint&);


Expand Down
50 changes: 2 additions & 48 deletions gui/gmapui.ui
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -15,59 +15,13 @@
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<layout class="QVBoxLayout" name="verticalLayout_2">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QSplitter" name="splitter">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<widget class="QWidget" name="">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QTreeView" name="treeView"/>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="copyButton">
<property name="toolTip">
<string>Copy to Clipboard</string>
</property>
<property name="text">
<string>Copy</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QTreeView" name="treeView"/>
<widget class="QFrame" name="frame">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
Expand Down

0 comments on commit c8fc044

Please sign in to comment.