Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete map dialog copy btn that was un-implemented. #1384

Merged
merged 1 commit into from
Nov 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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